equal
deleted
inserted
replaced
1853 QDir::Dirs, |
1853 QDir::Dirs, |
1854 QStringList("[^\\.]*") |
1854 QStringList("[^\\.]*") |
1855 ); |
1855 ); |
1856 |
1856 |
1857 unsigned int n = entries.count(); |
1857 unsigned int n = entries.count(); |
|
1858 |
|
1859 QIcon finishedIcon; |
|
1860 finishedIcon.addFile(":/res/missionFinished.png", QSize(), QIcon::Normal, QIcon::On); |
|
1861 finishedIcon.addFile(":/res/missionFinishedSelected.png", QSize(), QIcon::Selected, QIcon::On); |
1858 for(unsigned int i = 0; i < n; i++) |
1862 for(unsigned int i = 0; i < n; i++) |
1859 { |
1863 { |
1860 ui.pageCampaign->CBCampaign->addItem(QString(entries[i]).replace(QString("_"),QString(" ")), QString(entries[i]).replace(QString("_"),QString(" "))); |
1864 QString campaignNameUnderscores= QString(entries[i]).replace(QString(" "),QString("_")); |
|
1865 QString campaignNameSpaces = QString(entries[i]).replace(QString("_"),QString(" ")); |
|
1866 QString tName = team.name(); |
|
1867 ui.pageCampaign->CBCampaign->addItem(campaignNameSpaces, campaignNameSpaces); |
|
1868 if(isCampWon(campaignNameUnderscores, tName)) |
|
1869 ui.pageCampaign->CBCampaign->setItemIcon(i, finishedIcon); |
1861 } |
1870 } |
1862 } |
1871 } |
1863 |
1872 |
1864 void HWForm::UpdateCampaignPage(int index) |
1873 void HWForm::UpdateCampaignPage(int index) |
1865 { |
1874 { |