--- a/QTfrontend/ui/page/pageeditteam.cpp Tue Oct 10 21:00:11 2017 +0200
+++ b/QTfrontend/ui/page/pageeditteam.cpp Tue Oct 10 22:45:48 2017 +0200
@@ -312,6 +312,11 @@
CBVoicepack->addItems(list);
+ QIcon dlcIcon;
+ dlcIcon.addFile(":/res/dlcMarker.png", QSize(), QIcon::Normal, QIcon::On);
+ QPixmap emptySpace = QPixmap(7, 15);
+ emptySpace.fill(QColor(0, 0, 0, 0));
+ QIcon notDlcIcon = QIcon(emptySpace);
// forts
list = dataMgr.entryList("Forts", QDir::Files, QStringList("*L.png"));
@@ -320,15 +325,17 @@
QString fortPath = PHYSFS_getRealDir(QString("Forts/%1").arg(file).toLocal8Bit().data());
QString fort = file.replace(QRegExp("L\\.png$"), "");
- QString fortDisplay;
bool isDLC = !fortPath.startsWith(datadir->absolutePath());
if (isDLC)
- fortDisplay = "*" + fort;
+ {
+ CBFort->addItem(dlcIcon, fort, fort);
+ }
else
- fortDisplay = fort;
+ {
+ CBFort->addItem(notDlcIcon, fort, fort);
+ }
- CBFort->addItem(fortDisplay, fort);
}