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