QTfrontend/hwform.cpp
changeset 11955 d72a177dbaea
parent 11951 b05db9ca6e1c
child 11957 1201fc039e24
equal deleted inserted replaced
11954:62be63822a96 11955:d72a177dbaea
  1939         {
  1939         {
  1940             ui.pageCampaign->CBMission->setCurrentIndex(i);
  1940             ui.pageCampaign->CBMission->setCurrentIndex(i);
  1941             break;
  1941             break;
  1942         }
  1942         }
  1943     }
  1943     }
       
  1944     int i = ui.pageCampaign->CBCampaign->currentIndex();
       
  1945     QString campaignName = ui.pageCampaign->CBCampaign->currentText().replace(QString(" "),QString("_"));
       
  1946     HWTeam team(ui.pageCampaign->CBTeam->currentText());
       
  1947     QString tName = team.name();
       
  1948     if(isCampWon(campaignName, tName))
       
  1949         ui.pageCampaign->CBCampaign->setItemIcon(i, finishedIcon);
       
  1950     else
       
  1951         ui.pageCampaign->CBCampaign->setItemIcon(i, QIcon());
  1944 }
  1952 }
  1945 
  1953 
  1946 // used for --set-everything [screen width] [screen height] [color dept] [volume] [enable music] [enable sounds] [language file] [full screen] [show FPS] [alternate damage] [timer value] [reduced quality]
  1954 // used for --set-everything [screen width] [screen height] [color dept] [volume] [enable music] [enable sounds] [language file] [full screen] [show FPS] [alternate damage] [timer value] [reduced quality]
  1947 QString HWForm::getDemoArguments()
  1955 QString HWForm::getDemoArguments()
  1948 {
  1956 {