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
qqstylekitcustomtheme.cpp
Go to the documentation of this file.
1
// Copyright (C) 2025 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
include
"qqstylekitcustomtheme_p.h"
5
#
include
"qqstylekittheme_p.h"
6
7
QT_BEGIN_NAMESPACE
8
9
QQStyleKitCustomTheme
::
QQStyleKitCustomTheme
(
QObject
*
parent
)
10
:
QObject
(
parent
)
11
{
12
}
13
14
QString QQStyleKitCustomTheme::name()
const
15
{
16
return
m_name;
17
}
18
19
void
QQStyleKitCustomTheme
::
setName
(
const
QString &newName)
20
{
21
if
(m_name == newName)
22
return
;
23
m_name = newName;
24
emit nameChanged();
25
}
26
27
QQmlComponent
*
QQStyleKitCustomTheme
::
theme
()
const
28
{
29
return
m_theme;
30
}
31
32
void
QQStyleKitCustomTheme
::
setTheme
(QQmlComponent *newTheme)
33
{
34
if
(m_theme == newTheme)
35
return
;
36
m_theme = newTheme;
37
emit themeChanged();
38
}
39
40
QT_END_NAMESPACE
41
42
#
include
"moc_qqstylekitcustomtheme_p.cpp"
QObjectData::parent
QObject * parent
Definition
qobject.h:73
QObject
\inmodule QtCore
Definition
qobject.h:105
QQStyleKitCustomTheme
Definition
qqstylekitcustomtheme_p.h:26
QQStyleKitCustomTheme::theme
QQmlComponent * theme() const
Definition
qqstylekitcustomtheme.cpp:27
QQStyleKitCustomTheme::setName
void setName(const QString &newName)
Definition
qqstylekitcustomtheme.cpp:19
QQStyleKitCustomTheme::setTheme
void setTheme(QQmlComponent *newTheme)
Definition
qqstylekitcustomtheme.cpp:32
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtdeclarative
src
labs
stylekit
qqstylekitcustomtheme.cpp
Generated on
for Qt by
1.16.1