Add image for challenges
authorWuzzy <Wuzzy2@mail.ru>
Wed, 19 Dec 2018 01:21:20 +0100
changeset 14478 afa4f2140252
parent 14477 8d5034f7cc19
child 14479 2c3fb87ad1c5
Add image for challenges
QTfrontend/hedgewars.qrc
QTfrontend/res/Challenges.png
QTfrontend/res/Challenges.xcf
QTfrontend/ui/page/pagetraining.cpp
--- a/QTfrontend/hedgewars.qrc	Wed Dec 19 01:02:06 2018 +0100
+++ b/QTfrontend/hedgewars.qrc	Wed Dec 19 01:21:20 2018 +0100
@@ -44,6 +44,7 @@
         <file>res/CampaignDefault.png</file>
         <file>res/Multiplayer.png</file>
         <file>res/Trainings.png</file>
+        <file>res/Challenges.png</file>
         <file>res/Background.png</file>
         <file>res/BackgroundChristmas.png</file>
         <file>res/BackgroundEaster.png</file>
Binary file QTfrontend/res/Challenges.png has changed
Binary file QTfrontend/res/Challenges.xcf has changed
--- a/QTfrontend/ui/page/pagetraining.cpp	Wed Dec 19 01:02:06 2018 +0100
+++ b/QTfrontend/ui/page/pagetraining.cpp	Wed Dec 19 01:21:20 2018 +0100
@@ -321,6 +321,8 @@
 
             if (QFile::exists(thumbFile))
                 btnPreview->setIcon(QIcon(thumbFile));
+            else if (tbw->currentWidget() == lstChallenges)
+                btnPreview->setIcon(QIcon(":/res/Challenges.png"));
             else
                 btnPreview->setIcon(QIcon(":/res/Trainings.png"));