GH-1053 split settings dialog creation to its own namespace

This commit is contained in:
Petr Mrázek
2015-07-05 02:29:41 +02:00
parent 7f1320390c
commit 5f41886d76
8 changed files with 76 additions and 48 deletions

View File

@ -8,6 +8,7 @@
#include <QDateTime>
#include <updater/GoUpdate.h>
class GenericPageProvider;
class QFile;
class MinecraftVersionList;
class LWJGLVersionList;
@ -54,6 +55,11 @@ public:
return m_settings;
}
std::shared_ptr<GenericPageProvider> globalSettingsPages()
{
return m_globalSettingsProvider;
}
qint64 timeSinceStart() const
{
return startTime.msecsTo(QDateTime::currentDateTime());
@ -163,6 +169,7 @@ private:
std::shared_ptr<MinecraftVersionList> m_minecraftlist;
std::shared_ptr<JavaVersionList> m_javalist;
std::shared_ptr<TranslationDownloader> m_translationChecker;
std::shared_ptr<GenericPageProvider> m_globalSettingsProvider;
QMap<QString, std::shared_ptr<BaseProfilerFactory>> m_profilers;
QMap<QString, std::shared_ptr<BaseDetachedToolFactory>> m_tools;