diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2018-05-14 12:20:33 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2018-06-01 07:19:24 +0000 |
commit | 40746dae36452398649481fecad9cdc5f25cc80f (patch) | |
tree | c97c73364bdd5dfd3069b7a0b062fcee8ef38182 /src/app/config-ui/mainwindow.h | |
parent | 78e19d1f234bb1ba9957c877e57d128f09d1459a (diff) | |
download | qbs-40746dae36452398649481fecad9cdc5f25cc80f.tar.gz |
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/mainwindow.h')
-rw-r--r-- | src/app/config-ui/mainwindow.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app/config-ui/mainwindow.h b/src/app/config-ui/mainwindow.h index 908e447ea..567a183f1 100644 --- a/src/app/config-ui/mainwindow.h +++ b/src/app/config-ui/mainwindow.h @@ -39,6 +39,8 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H +#include <tools/settings.h> + #include <QtWidgets/qmainwindow.h> namespace qbs { class SettingsModel; } @@ -53,7 +55,8 @@ class MainWindow : public QMainWindow Q_OBJECT public: - explicit MainWindow(const QString &settingsDir, QWidget *parent = nullptr); + explicit MainWindow(const QString &settingsDir, qbs::Settings::Scope scope, + QWidget *parent = nullptr); ~MainWindow(); bool eventFilter(QObject *watched, QEvent *event); |