blob: 4a76d2f6de900ecc5a2813c6c9dbe8930f65a1ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#include "settingscontroller.h"
#include "modeleditor_constants.h"
#include <QSettings>
namespace ModelEditor {
namespace Internal {
SettingsController::SettingsController()
{
}
void SettingsController::reset()
{
emit resetSettings();
}
void SettingsController::save(QSettings *settings)
{
settings->beginGroup(QLatin1String(Constants::SETTINGS_GROUP));
emit saveSettings(settings);
settings->endGroup();
settings->sync();
}
void SettingsController::load(QSettings *settings)
{
settings->beginGroup(QLatin1String(Constants::SETTINGS_GROUP));
emit loadSettings(settings);
settings->endGroup();
}
} // namespace Internal
} // namespace ModelEditor
|