Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquicksystempalette.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 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
5
6#include <QGuiApplication>
7
8#include <private/qobject_p.h>
9
11
13{
14public:
16};
17
18
19
47{
49 d->group = QPalette::Active;
51}
52
60{
61 Q_D(const QQuickSystemPalette);
63}
64
72{
73 Q_D(const QQuickSystemPalette);
75}
76
84{
85 Q_D(const QQuickSystemPalette);
87}
88
96{
97 Q_D(const QQuickSystemPalette);
99}
100
108{
109 Q_D(const QQuickSystemPalette);
111}
112
120{
121 Q_D(const QQuickSystemPalette);
123}
124
132{
133 Q_D(const QQuickSystemPalette);
135}
136
144{
145 Q_D(const QQuickSystemPalette);
147}
148
156{
157 Q_D(const QQuickSystemPalette);
159}
160
168{
169 Q_D(const QQuickSystemPalette);
171}
172
180{
181 Q_D(const QQuickSystemPalette);
183}
184
192{
193 Q_D(const QQuickSystemPalette);
195}
196
204{
205 Q_D(const QQuickSystemPalette);
207}
208
216{
217 Q_D(const QQuickSystemPalette);
219}
220
229{
230 Q_D(const QQuickSystemPalette);
232}
245{
246 Q_D(const QQuickSystemPalette);
247 return (QQuickSystemPalette::ColorGroup)d->group;
248}
249
251{
255}
256
258
259#include "moc_qquicksystempalette_p.cpp"
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
static QPalette palette()
Returns the current application palette.
\inmodule QtCore
Definition qobject.h:90
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
Definition qobject.cpp:2823
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
const QColor & color(ColorGroup cg, ColorRole cr) const
Returns the color in the specified color group, used for the given color role.
Definition qpalette.h:66
ColorGroup
\value Disabled \value Active \value Inactive \value Normal synonym for Active
Definition qpalette.h:48
@ HighlightedText
Definition qpalette.h:52
@ AlternateBase
Definition qpalette.h:54
@ ButtonText
Definition qpalette.h:51
@ WindowText
Definition qpalette.h:50
@ Highlight
Definition qpalette.h:52
@ PlaceholderText
Definition qpalette.h:57
@ Midlight
Definition qpalette.h:50
void setColorGroup(QQuickSystemPalette::ColorGroup)
QQuickSystemPalette::ColorGroup colorGroup
QQuickSystemPalette(QObject *parent=nullptr)
\qmltype SystemPalette \instantiates QQuickSystemPalette \inqmlmodule QtQuick
Combined button and popup list for selecting options.
#define qApp
#define SIGNAL(a)
Definition qobjectdefs.h:52
#define emit
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent