aboutsummaryrefslogtreecommitdiff
path: root/launcher/Application.h
diff options
context:
space:
mode:
authorTayou <tayou@gmx.net>2022-11-01 15:41:08 +0100
committerTayou <tayou@gmx.net>2022-11-01 20:17:53 +0100
commita3f5ea359827abb7949070cdcd8d56be50ab3360 (patch)
tree65bb5898e45aae3fcad239e0b88673e84adc28aa /launcher/Application.h
parentfef60a9da0216bdcb266d935bbfea03aba8905b4 (diff)
downloadPrismLauncher-a3f5ea359827abb7949070cdcd8d56be50ab3360.tar.gz
PrismLauncher-a3f5ea359827abb7949070cdcd8d56be50ab3360.tar.bz2
PrismLauncher-a3f5ea359827abb7949070cdcd8d56be50ab3360.zip
added suggested changes
Signed-off-by: Tayou <tayou@gmx.net>
Diffstat (limited to 'launcher/Application.h')
-rw-r--r--launcher/Application.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/launcher/Application.h b/launcher/Application.h
index 33d8db29..ec434c6c 100644
--- a/launcher/Application.h
+++ b/launcher/Application.h
@@ -45,8 +45,6 @@
#include <QUrl>
#include <updater/GoUpdate.h>
-#include "ui/themes/ThemeManager.h"
-
#include <BaseInstance.h>
#include "minecraft/launch/MinecraftServerTarget.h"
@@ -71,6 +69,7 @@ class BaseDetachedToolFactory;
class TranslationsModel;
class ITheme;
class MCEditTool;
+class ThemeManager;
namespace Meta {
class Index;
@@ -121,7 +120,7 @@ public:
void setIconTheme(const QString& name);
- std::vector<ITheme *> getValidApplicationThemes();
+ QList<ITheme*> getValidApplicationThemes();
void setApplicationTheme(const QString& name, bool initial);
@@ -201,8 +200,6 @@ public:
void ShowGlobalSettings(class QWidget * parent, QString open_page = QString());
- ThemeManager* getThemeManager();
-
signals:
void updateAllowedChanged(bool status);
void globalSettingsAboutToOpen();
@@ -262,7 +259,7 @@ private:
std::shared_ptr<GenericPageProvider> m_globalSettingsProvider;
std::unique_ptr<MCEditTool> m_mcedit;
QSet<QString> m_features;
- ThemeManager* m_themeManager;
+ std::unique_ptr<ThemeManager> m_themeManager;
QMap<QString, std::shared_ptr<BaseProfilerFactory>> m_profilers;