Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
17
18
19
52
60{
61 Q_D(const QQuickSystemPalette);
62 return QGuiApplication::palette().color(d->group, QPalette::Window);
63}
64
76
84{
85 Q_D(const QQuickSystemPalette);
86 return QGuiApplication::palette().color(d->group, QPalette::Base);
87}
88
96{
97 Q_D(const QQuickSystemPalette);
98 return QGuiApplication::palette().color(d->group, QPalette::Text);
99}
100
112
120{
121 Q_D(const QQuickSystemPalette);
122 return QGuiApplication::palette().color(d->group, QPalette::Button);
123}
124
136
144{
145 Q_D(const QQuickSystemPalette);
146 return QGuiApplication::palette().color(d->group, QPalette::Light);
147}
148
156{
157 Q_D(const QQuickSystemPalette);
158 return QGuiApplication::palette().color(d->group, QPalette::Midlight);
159}
160
168{
169 Q_D(const QQuickSystemPalette);
170 return QGuiApplication::palette().color(d->group, QPalette::Dark);
171}
172
180{
181 Q_D(const QQuickSystemPalette);
182 return QGuiApplication::palette().color(d->group, QPalette::Mid);
183}
184
192{
193 Q_D(const QQuickSystemPalette);
194 return QGuiApplication::palette().color(d->group, QPalette::Shadow);
195}
196
204{
205 Q_D(const QQuickSystemPalette);
206 return QGuiApplication::palette().color(d->group, QPalette::Highlight);
207}
208
220
233
242{
243 Q_D(const QQuickSystemPalette);
244 return QGuiApplication::palette().color(d->group, QPalette::Accent);
245}
246
263
270
272
273#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:103
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
Definition qobject.cpp:2960
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
ColorGroup
\value Disabled \value Active \value Inactive \value Normal synonym for Active
Definition qpalette.h:49
@ HighlightedText
Definition qpalette.h:53
@ AlternateBase
Definition qpalette.h:55
@ ButtonText
Definition qpalette.h:52
@ WindowText
Definition qpalette.h:51
@ Highlight
Definition qpalette.h:53
@ PlaceholderText
Definition qpalette.h:58
@ Midlight
Definition qpalette.h:51
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:53
#define emit