QTfrontend/ui/page/pagetraining.cpp
changeset 6073 e6ce1a337e0f
parent 6060 fdfc01419815
child 6159 c780b8cf4d75
equal deleted inserted replaced
6072:e3dc802965d6 6073:e6ce1a337e0f
   203     {
   203     {
   204         // TODO also use .pngs in userdata folder
   204         // TODO also use .pngs in userdata folder
   205         QString thumbFile = datadir->absolutePath() +
   205         QString thumbFile = datadir->absolutePath() +
   206                     "/Graphics/Missions/Training/" +
   206                     "/Graphics/Missions/Training/" +
   207                     lstMissions->currentItem()->data(Qt::UserRole).toString() +
   207                     lstMissions->currentItem()->data(Qt::UserRole).toString() +
   208                     ".png";
   208                     "@2x.png";
   209 
   209 
   210         if (QFile::exists(thumbFile))
   210         if (QFile::exists(thumbFile))
   211             btnPreview->setIcon(QIcon(thumbFile));
   211             btnPreview->setIcon(QIcon(thumbFile));
   212         else
   212         else
   213             btnPreview->setIcon(QIcon(":/res/Trainings.png"));
   213             btnPreview->setIcon(QIcon(":/res/Trainings.png"));