# HG changeset patch # User Wuzzy <Wuzzy2@mail.ru> # Date 1545178880 -3600 # Node ID afa4f2140252330201eca837ebb0717bb0262fbe # Parent 8d5034f7cc191fdbf59b4c5e58abde73feb6379a Add image for challenges diff -r 8d5034f7cc19 -r afa4f2140252 QTfrontend/hedgewars.qrc --- 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> diff -r 8d5034f7cc19 -r afa4f2140252 QTfrontend/res/Challenges.png Binary file QTfrontend/res/Challenges.png has changed diff -r 8d5034f7cc19 -r afa4f2140252 QTfrontend/res/Challenges.xcf Binary file QTfrontend/res/Challenges.xcf has changed diff -r 8d5034f7cc19 -r afa4f2140252 QTfrontend/ui/page/pagetraining.cpp --- 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"));