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
qqstylekitstyleandthemebase.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
"qqstylekitstyleandthemebase_p.h"
5
6
QT_BEGIN_NAMESPACE
7
8
/*!
9
\qmltype AbstractStyle
10
\inqmlmodule Qt.labs.StyleKit
11
\inherits AbstractStylableControls
12
\brief Abstract base type with properties common to both \l Style and \l Theme.
13
14
AbstractStyle contains properties, such and fonts and palettes, that are
15
common to both a \l Style and a \l Theme.
16
17
\labs
18
*/
19
20
QQStyleKitStyleAndThemeBase
::
QQStyleKitStyleAndThemeBase
(
QObject
*
parent
)
21
:
QQStyleKitControls
(
parent
)
22
{
23
}
24
25
/*!
26
\qmlproperty StyleFont AbstractStyle::fonts
27
28
Grouped property for configuring per-control \l [QML]{font}{fonts}.
29
Fonts can be set for individual control types such as button,
30
textField, or label.
31
32
\qml
33
Style {
34
fonts {
35
system.pixelSize: 14
36
button.bold: true
37
textField.family: "Monospace"
38
}
39
}
40
\endqml
41
*/
42
QQStyleKitFont *
QQStyleKitStyleAndThemeBase
::
fonts
()
43
{
44
return
&m_fonts;
45
}
46
47
/*!
48
\qmlproperty StylePalette AbstractStyle::palettes
49
50
Grouped property for configuring per-control \l [QML]{Palette}{palettes}.
51
Palettes can be set system-wide or for individual control types.
52
53
\qml
54
light: Theme {
55
palettes {
56
system {
57
window: "gainsboro"
58
windowText: "black"
59
}
60
button.buttonText: "black"
61
textField.text: "#4e4e4e"
62
}
63
}
64
\endqml
65
*/
66
QQStyleKitPalette
*
QQStyleKitStyleAndThemeBase
::
palettes
()
67
{
68
return
&m_palettes;
69
}
70
71
QT_END_NAMESPACE
72
73
#
include
"moc_qqstylekitstyleandthemebase_p.cpp"
QObjectData::parent
QObject * parent
Definition
qobject.h:74
QObject
\inmodule QtCore
Definition
qobject.h:106
QQStyleKitControls
Definition
qqstylekitcontrols_p.h:30
QQStyleKitPalette
Definition
qqstylekitpalette_p.h:26
QQStyleKitStyleAndThemeBase
Definition
qqstylekitstyleandthemebase_p.h:27
QQStyleKitStyleAndThemeBase::palettes
QQStyleKitPalette * palettes()
QQStyleKitStyleAndThemeBase::fonts
QQStyleKitFont * fonts()
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtdeclarative
src
labs
stylekit
qqstylekitstyleandthemebase.cpp
Generated on
for Qt by
1.16.1