summaryrefslogtreecommitdiffstats
path: root/data/appsettings.h
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-01-29 23:52:37 -0600
committerAndrew <forkk@forkk.net>2013-01-29 23:52:37 -0600
commit90764f97d94a52517d735ed96d26bb52a2d75de1 (patch)
tree082db6f2a45778b65f3bcc91177f27d1b126a673 /data/appsettings.h
parentdcc21b7e649f79fa0cac75507ba9a314735744d9 (diff)
downloadMultiMC-90764f97d94a52517d735ed96d26bb52a2d75de1.tar
MultiMC-90764f97d94a52517d735ed96d26bb52a2d75de1.tar.gz
MultiMC-90764f97d94a52517d735ed96d26bb52a2d75de1.tar.lz
MultiMC-90764f97d94a52517d735ed96d26bb52a2d75de1.tar.xz
MultiMC-90764f97d94a52517d735ed96d26bb52a2d75de1.zip
Add instance toolbar.
Diffstat (limited to 'data/appsettings.h')
-rw-r--r--data/appsettings.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/appsettings.h b/data/appsettings.h
index eff22b11..a9068bfd 100644
--- a/data/appsettings.h
+++ b/data/appsettings.h
@@ -19,6 +19,7 @@
#include <QObject>
#include <QSettings>
#include <QColor>
+#include <QPoint>
#include "util/apputils.h"
#include "util/osutils.h"
@@ -60,6 +61,10 @@ public:
DEFINE_SETTING(ShowConsole, bool, true)
DEFINE_SETTING(AutoCloseConsole, bool, true)
+ // Toolbar settings
+ DEFINE_SETTING(InstanceToolbarVisible, bool, true)
+ DEFINE_SETTING(InstanceToolbarPosition, QPoint, QPoint())
+
// Console Colors
DEFINE_SETTING(SysMessageColor, QColor, QColor(Qt::blue))
DEFINE_SETTING(StdOutColor, QColor, QColor(Qt::black))
@@ -97,6 +102,8 @@ class AppSettings : public SettingsBase
public:
explicit AppSettings(QObject *parent = 0);
+ QSettings& getConfig() { return config; }
+
protected:
virtual QVariant getValue(const QString &name, QVariant defVal = QVariant()) const;
virtual void setValue(const QString& name, QVariant val);