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

(a36782cfe86f2e274b8dff533eafe8cca67c0fc3)

#include "qquickuniversalstyle_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()

static QRgb qquickuniversal_accent_color ( QQuickUniversalStyle::Color accent)
static

Definition at line 77 of file qquickuniversalstyle.cpp.

References colors, and QRgb.

Referenced by QQuickUniversalStyle::color(), and QQuickUniversalStyle::initGlobals().

+ Here is the caller graph for this function:

◆ qquickuniversal_dark_color()

static QRgb qquickuniversal_dark_color ( QQuickUniversalStyle::SystemColor role)
static

Definition at line 46 of file qquickuniversalstyle.cpp.

References colors, and QRgb.

Referenced by QQuickUniversalStyle::systemColor().

+ Here is the caller graph for this function:

◆ qquickuniversal_effective_theme()

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

Definition at line 104 of file qquickuniversalstyle.cpp.

References QQuickUniversalStyle::Dark, QQuickStylePrivate::isDarkSystemTheme(), QQuickUniversalStyle::Light, and QQuickUniversalStyle::System.

Referenced by QQuickUniversalStyle::initGlobals(), and QQuickUniversalStyle::setTheme().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qquickuniversal_light_color()

static QT_BEGIN_NAMESPACE QRgb qquickuniversal_light_color ( QQuickUniversalStyle::SystemColor role)
static

Definition at line 15 of file qquickuniversalstyle.cpp.

References colors, and QRgb.

Referenced by QQuickUniversalStyle::systemColor().

+ Here is the caller graph for this function:

◆ resolveSetting()

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

Definition at line 497 of file qquickuniversalstyle.cpp.

References qgetenv(), settings, QVariant::toByteArray(), and QSettings::value().

+ Here is the call graph for this function:

◆ toEnumValue()

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

Definition at line 491 of file qquickuniversalstyle.cpp.

References QMetaEnum::keyToValue(), and ok.

+ Here is the call graph for this function:

Variable Documentation

◆ GlobalAccent

◆ GlobalBackground

◆ GlobalForeground

◆ GlobalTheme

◆ HasGlobalBackground

bool HasGlobalBackground = false
static

Definition at line 121 of file qquickuniversalstyle.cpp.

Referenced by QQuickUniversalStyle::initGlobals().

◆ HasGlobalForeground

bool HasGlobalForeground = false
static

Definition at line 120 of file qquickuniversalstyle.cpp.

Referenced by QQuickUniversalStyle::initGlobals().