summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-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);