Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdesigner_qsettings.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
// Qt-Security score:significant reason:default
4
5
#
include
"qdesigner_qsettings_p.h"
6
7
#
include
<
QtCore
/
qsettings
.
h
>
8
#
include
<
QtCore
/
qcoreapplication
.
h
>
9
#
include
<
QtCore
/
qtextstream
.
h
>
10
#
include
<
QtCore
/
qstring
.
h
>
11
#
include
<
QtCore
/
qdebug
.
h
>
12
13
QDesignerQSettings::QDesignerQSettings() :
14
m_settings(qApp->organizationName(), settingsApplicationName())
15
{
16
}
17
18
QString QDesignerQSettings::settingsApplicationName()
19
{
20
return
qApp->applicationName();
21
}
22
23
void
QDesignerQSettings::beginGroup(
const
QString &prefix)
24
{
25
m_settings.beginGroup(prefix);
26
}
27
28
void
QDesignerQSettings::endGroup()
29
{
30
m_settings.endGroup();
31
}
32
33
bool
QDesignerQSettings::contains(
const
QString &key)
const
34
{
35
return
m_settings.contains(key);
36
}
37
38
void
QDesignerQSettings::setValue(
const
QString &key,
const
QVariant &value)
39
{
40
m_settings.setValue(key, value);
41
}
42
43
QVariant QDesignerQSettings::value(
const
QString &key,
const
QVariant &defaultValue)
const
44
{
45
return
m_settings.value(key, defaultValue);
46
}
47
48
void
QDesignerQSettings::remove(
const
QString &key)
49
{
50
m_settings.remove(key);
51
}
qttools
src
designer
src
lib
shared
qdesigner_qsettings.cpp
Generated on
for Qt by
1.16.1