aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/config-ui/commandlineparser.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-05-14 12:20:33 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-06-01 07:19:24 +0000
commit40746dae36452398649481fecad9cdc5f25cc80f (patch)
treec97c73364bdd5dfd3069b7a0b062fcee8ef38182 /src/app/config-ui/commandlineparser.h
parent78e19d1f234bb1ba9957c877e57d128f09d1459a (diff)
Add support for system-level settings
In addition to the traditional per-user settings, there is now also a system-wide settings file affecting all users. The file's platform- specific default location can be overridden at build time. The qbs-config tool can write these settings via the new --system option. [ChangeLog] Introduced the concept of system-level qbs settings Change-Id: Ie6f675a74e96ce1fa7b2dd0712f6106071e848a6 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/app/config-ui/commandlineparser.h')
-rw-r--r--src/app/config-ui/commandlineparser.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/config-ui/commandlineparser.h b/src/app/config-ui/commandlineparser.h
index 1cb6bf2f7..dc43d33b3 100644
--- a/src/app/config-ui/commandlineparser.h
+++ b/src/app/config-ui/commandlineparser.h
@@ -39,6 +39,8 @@
#ifndef QBS_CONFIGUI_COMMANDLINEPARSER_H
#define QBS_CONFIGUI_COMMANDLINEPARSER_H
+#include <tools/settings.h>
+
#include <QtCore/qstringlist.h>
class CommandLineParser
@@ -48,6 +50,7 @@ public:
bool helpRequested() const { return m_helpRequested; }
QString settingsDir() const { return m_settingsDir; }
+ qbs::Settings::Scope settingsScope() const { return m_settingsScope; }
QString usageString() const;
@@ -57,6 +60,7 @@ private:
[[noreturn]] void complainAboutExtraArguments();
bool m_helpRequested;
+ qbs::Settings::Scope m_settingsScope = qbs::Settings::UserScope;
QString m_settingsDir;
QStringList m_commandLine;
QString m_command;