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
qquickuniversalstyle.cpp File Reference

(01cd43d30e3ca2c4dd94a4a4711604adb9417517)

#include "qquickuniversalstyle_p.h"
#include "qquickuniversaltheme_p.h"
#include <QtCore/qdebug.h>
#include <QtQml/qqmlinfo.h>
#include <QtQuickControls2/private/qquickstyle_p.h>
#include "moc_qquickuniversalstyle_p.cpp"
Include dependency graph for qquickuniversalstyle.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE QRgb qquickuniversal_light_color (QQuickUniversalStyle::SystemColor role)
static QRgb qquickuniversal_dark_color (QQuickUniversalStyle::SystemColor role)
static QRgb qquickuniversal_accent_color (QQuickUniversalStyle::Color accent)
static QQuickUniversalStyle::Theme qquickuniversal_effective_theme (QQuickUniversalStyle::Theme theme)
template<typename Enum>
static Enum toEnumValue (const QByteArray &value, bool *ok)
static QByteArray resolveSetting (const QByteArray &env, const QSharedPointer< QSettings > &settings, const QString &name)

Variables

static QQuickUniversalStyle::Theme GlobalTheme = QQuickUniversalStyle::Light
static QRgb GlobalAccent = qquickuniversal_accent_color(QQuickUniversalStyle::Cobalt)
static QRgb GlobalForeground = qquickuniversal_light_color(QQuickUniversalStyle::BaseHigh)
static QRgb GlobalBackground = qquickuniversal_light_color(QQuickUniversalStyle::AltHigh)
static bool HasGlobalForeground = false
static bool HasGlobalBackground = false

Function Documentation

◆ qquickuniversal_accent_color()

QRgb qquickuniversal_accent_color ( QQuickUniversalStyle::Color accent)
static

Definition at line 79 of file qquickuniversalstyle.cpp.

◆ qquickuniversal_dark_color()

QRgb qquickuniversal_dark_color ( QQuickUniversalStyle::SystemColor role)
static

Definition at line 48 of file qquickuniversalstyle.cpp.

◆ qquickuniversal_effective_theme()

QQuickUniversalStyle::Theme qquickuniversal_effective_theme ( QQuickUniversalStyle::Theme theme)
static

Definition at line 106 of file qquickuniversalstyle.cpp.

◆ qquickuniversal_light_color()

QT_BEGIN_NAMESPACE QRgb qquickuniversal_light_color ( QQuickUniversalStyle::SystemColor role)
static

Definition at line 17 of file qquickuniversalstyle.cpp.

◆ resolveSetting()

QByteArray resolveSetting ( const QByteArray & env,
const QSharedPointer< QSettings > & settings,
const QString & name )
static

Definition at line 529 of file qquickuniversalstyle.cpp.

◆ toEnumValue()

template<typename Enum>
Enum toEnumValue ( const QByteArray & value,
bool * ok )
static

Definition at line 523 of file qquickuniversalstyle.cpp.

Variable Documentation

◆ GlobalAccent

◆ GlobalBackground

Definition at line 119 of file qquickuniversalstyle.cpp.

◆ GlobalForeground

Definition at line 118 of file qquickuniversalstyle.cpp.

◆ GlobalTheme

Definition at line 116 of file qquickuniversalstyle.cpp.

◆ HasGlobalBackground

bool HasGlobalBackground = false
static

Definition at line 123 of file qquickuniversalstyle.cpp.

◆ HasGlobalForeground

bool HasGlobalForeground = false
static

Definition at line 122 of file qquickuniversalstyle.cpp.