summaryrefslogtreecommitdiffstats
path: root/MultiMC.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-03-01 22:20:57 +0100
committerPetr Mrázek <peterix@gmail.com>2015-03-01 22:20:57 +0100
commitceec70e014db629aa8ba3472839cc42781d73d4c (patch)
tree1de0150b51fceb85d9ffa330b3dcd70580b33082 /MultiMC.cpp
parentef34cafe174271a423418d7eb68c4b4096642223 (diff)
downloadMultiMC-ceec70e014db629aa8ba3472839cc42781d73d4c.tar
MultiMC-ceec70e014db629aa8ba3472839cc42781d73d4c.tar.gz
MultiMC-ceec70e014db629aa8ba3472839cc42781d73d4c.tar.lz
MultiMC-ceec70e014db629aa8ba3472839cc42781d73d4c.tar.xz
MultiMC-ceec70e014db629aa8ba3472839cc42781d73d4c.zip
GH-796 Icon theme loading workaround
Replacing the Qt machinery with other Qt machinery under our control
Diffstat (limited to 'MultiMC.cpp')
-rw-r--r--MultiMC.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/MultiMC.cpp b/MultiMC.cpp
index d2a5e29b..abb30225 100644
--- a/MultiMC.cpp
+++ b/MultiMC.cpp
@@ -39,6 +39,7 @@
#include "pathutils.h"
#include "cmdutils.h"
+#include <xdgicon.h>
#include "logic/settings/INISettingsObject.h"
#include "logic/settings/Setting.h"
#include "logger/QsLog.h"
@@ -739,6 +740,16 @@ void MultiMC::installUpdates(const QString updateFilesDir, UpdateFlags flags)
MMC->quit();
}
+void MultiMC::setIconTheme(const QString& name)
+{
+ XdgIcon::setThemeName(name);
+}
+
+QIcon MultiMC::getThemedIcon(const QString& name)
+{
+ return XdgIcon::fromTheme(name);
+}
+
void MultiMC::onExit()
{
if (m_updateOnExitPath.size())