7#include <QtGui/qpa/qplatformtheme.h>
8#include <QtGui/private/qguiapplication_p.h>
116 if (theme->usePlatformPalette()) {
124 if (
p->defaultPalette &&
p->defaultPalette->resolveMask() != 0) {
125 QPalette defPalette = *
p->defaultPalette;
void setResolveMask(uint mask)
static QPlatformTheme * platformTheme()
The QPalette class contains color groups for each widget state.
void setResolveMask(ResolveMask mask)
QPalette resolve(const QPalette &other) const
Returns a new QPalette that is a union of this instance and other.
static QQuickThemePrivate * get(QQuickTheme *theme)
QSharedPointer< QFont > fonts[NScopes]
QSharedPointer< QPalette > palettes[NScopes]
static std::unique_ptr< QQuickTheme > instance
static QQuickTheme * instance()
void setFont(Scope scope, const QFont &font)
void setPalette(Scope scope, const QPalette &palette)
static QPalette palette(Scope scope)
static QFont font(Scope scope)
T * data() const noexcept
Returns the value of the pointer referenced by this object.
static QSharedPointer create(Args &&...arguments)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Combined button and popup list for selecting options.
void qAddPostRoutine(QtCleanUpFunction p)
#define Q_COREAPP_STARTUP_FUNCTION(AFUNC)
static void install_instance_cleanuper()
static QPlatformTheme::Palette platformPalette(QQuickTheme::Scope scope)
static QPlatformTheme::Font platformFont(QQuickTheme::Scope scope)
static void cleanup_instance()