aboutsummaryrefslogtreecommitdiff
path: root/launcher/VersionProxyModel.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2021-10-13 01:59:25 +0200
committerPetr Mrázek <peterix@gmail.com>2021-10-21 00:47:53 +0200
commit441ab7eedcb8fe120a7f934684ed5545cdd7a4b6 (patch)
tree5a1a93e871f5172b3f087e9eb04bf6918bd34ec7 /launcher/VersionProxyModel.cpp
parent6a4130c9149deb029b496c81e3b874ad834c54b7 (diff)
downloadPrismLauncher-441ab7eedcb8fe120a7f934684ed5545cdd7a4b6.tar.gz
PrismLauncher-441ab7eedcb8fe120a7f934684ed5545cdd7a4b6.tar.bz2
PrismLauncher-441ab7eedcb8fe120a7f934684ed5545cdd7a4b6.zip
NOISSUE debranding for real, initial work
This is probably very broken on macOS and Windows and will need a lot of work to complete fully.
Diffstat (limited to 'launcher/VersionProxyModel.cpp')
-rw-r--r--launcher/VersionProxyModel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/VersionProxyModel.cpp b/launcher/VersionProxyModel.cpp
index 5587136f..12f9bdd8 100644
--- a/launcher/VersionProxyModel.cpp
+++ b/launcher/VersionProxyModel.cpp
@@ -1,5 +1,5 @@
#include "VersionProxyModel.h"
-#include "MultiMC.h"
+#include "Launcher.h"
#include <QSortFilterProxyModel>
#include <QPixmapCache>
#include <Version.h>
@@ -194,19 +194,19 @@ QVariant VersionProxyModel::data(const QModelIndex &index, int role) const
auto value = sourceModel()->data(parentIndex, BaseVersionList::RecommendedRole);
if(value.toBool())
{
- return MMC->getThemedIcon("star");
+ return LAUNCHER->getThemedIcon("star");
}
else if(hasLatest)
{
auto value = sourceModel()->data(parentIndex, BaseVersionList::LatestRole);
if(value.toBool())
{
- return MMC->getThemedIcon("bug");
+ return LAUNCHER->getThemedIcon("bug");
}
}
else if(index.row() == 0)
{
- return MMC->getThemedIcon("bug");
+ return LAUNCHER->getThemedIcon("bug");
}
auto pixmap = QPixmapCache::find("placeholder");
if(!pixmap)