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
6
8
13
14QString QQStyleKitCustomTheme::name() const
15{
16 return m_name;
17}
18
19void QQStyleKitCustomTheme::setName(const QString &newName)
20{
21 if (m_name == newName)
22 return;
23 m_name = newName;
24 emit nameChanged();
25}
26
28{
29 return m_theme;
30}
31
32void QQStyleKitCustomTheme::setTheme(QQmlComponent *newTheme)
33{
34 if (m_theme == newTheme)
35 return;
36 m_theme = newTheme;
37 emit themeChanged();
38}
39
40QT_END_NAMESPACE
41
42#include "moc_qqstylekitcustomtheme_p.cpp"
QObject * parent
Definition qobject.h:73
\inmodule QtCore
Definition qobject.h:105
QQmlComponent * theme() const
void setName(const QString &newName)
void setTheme(QQmlComponent *newTheme)
Combined button and popup list for selecting options.