--- a/QTfrontend/model/MapModel.cpp Tue Oct 10 21:00:11 2017 +0200
+++ b/QTfrontend/model/MapModel.cpp Tue Oct 10 22:45:48 2017 +0200
@@ -80,6 +80,13 @@
//QList<QStandardItem *> missionMaps;
QList<QStandardItem *> mapList;
+
+ 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);
+
// add mission/static maps to lists
foreach (QString map, maps)
{
@@ -163,9 +170,15 @@
// caption
caption = map;
+ QIcon icon;
+ if (dlc)
+ icon = dlcIcon;
+ else
+ icon = notDlcIcon;
+
// we know everything there is about the map, let's get am item for it
QStandardItem * item = MapModel::infoToItem(
- QIcon(), caption, type, map, theme, limit, scheme, weapons, desc, dlc);
+ icon, caption, type, map, theme, limit, scheme, weapons, desc, dlc);
// append item to the list
mapList.append(item);
@@ -225,7 +238,7 @@
QString desc,
bool dlc)
{
- QStandardItem * item = new QStandardItem(icon, (dlc ? "*" : "") + caption);
+ QStandardItem * item = new QStandardItem(icon, caption);
MapInfo mapInfo;
QVariant qvar(QVariant::UserType);