--- a/QTfrontend/model/GameStyleModel.cpp Tue Oct 10 21:00:11 2017 +0200
+++ b/QTfrontend/model/GameStyleModel.cpp Tue Oct 10 22:45:48 2017 +0200
@@ -32,11 +32,17 @@
{
beginResetModel();
+ 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);
+
// empty list, so that we can (re)fill it
QStandardItemModel::clear();
QList<QStandardItem * > items;
- items.append(new QStandardItem("Normal"));
+ items.append(new QStandardItem(notDlcIcon, "Normal"));
// define a separator item
QStandardItem * separator = new QStandardItem("---");
@@ -82,7 +88,11 @@
QString scriptPath = PHYSFS_getRealDir(QString("Scripts/Multiplayer/%1.lua").arg(script).toLocal8Bit().data());
bool isDLC = !scriptPath.startsWith(datadir->absolutePath());
- QStandardItem * item = new QStandardItem((isDLC ? "*" : "") + name);
+ QStandardItem * item;
+ if (isDLC)
+ item = new QStandardItem(dlcIcon, name);
+ else
+ item = new QStandardItem(notDlcIcon, name);
item->setData(script, ScriptRole);
item->setData(scheme, SchemeRole);