diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-20 11:20:27 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-02 03:06:59 -0400 |
| commit | a05862aaa13b028e2f250347daa7a2e0f64c2380 (patch) | |
| tree | 9501f8186927bf6dbd96b9d195f7392410150099 /src/settings.h | |
| parent | 107b396902be52f8ae305f58d4e7d85a86779051 (diff) | |
cleaned up includes
removed commented out code
reordered member functions in Settings
Diffstat (limited to 'src/settings.h')
| -rw-r--r-- | src/settings.h | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/src/settings.h b/src/settings.h index 899baaa3..b20e78d0 100644 --- a/src/settings.h +++ b/src/settings.h @@ -23,17 +23,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "loadmechanism.h" #include <log.h> -#include <QList> -#include <QMap> -#include <QObject> -#include <QSet> -#include <QSettings> -#include <QString> -#include <QVariant> -#include <QColor> -#include <map> -#include <vector> - namespace MOBase { class IPlugin; class IPluginGame; @@ -376,6 +365,8 @@ public: */ bool colorSeparatorScrollbar() const; + static QColor getIdealTextColor(const QColor& rBackgroundColor); + // temp QSettings& settingsRef() { return m_Settings; } MOBase::IPluginGame const *gamePlugin() { return m_GamePlugin; } @@ -386,37 +377,24 @@ public: const LoadMechanism& loadMechanism() const { return m_LoadMechanism; } public slots: - void managedGameChanged(MOBase::IPluginGame const *gamePlugin); -public: - static QColor getIdealTextColor(const QColor& rBackgroundColor); -private: - - static bool obfuscate(const QString key, const QString data); - static QString deObfuscate(const QString key); - - void readPluginBlacklist(); - QString getConfigurablePath(const QString &key, const QString &def, bool resolve) const; - -private slots: signals: - void languageChanged(const QString &newLanguage); void styleChanged(const QString &newStyle); private: - static Settings *s_Instance; - MOBase::IPluginGame const *m_GamePlugin; - QSettings m_Settings; - LoadMechanism m_LoadMechanism; - std::vector<MOBase::IPlugin*> m_Plugins; + static bool obfuscate(const QString key, const QString data); + static QString deObfuscate(const QString key); + + void readPluginBlacklist(); + QString getConfigurablePath(const QString &key, const QString &def, bool resolve) const; }; #endif // SETTINGS_H |
