8#include <QtCore/QVariant>
9#include <QtCore/QStringList>
10#include <QtCore/qfileinfo.h>
14#include <private/qiconloader_p.h>
15#include <private/qguiapplication_p.h>
16#include <qpa/qplatformintegration.h>
17#include <qpa/qplatformdialoghelper.h>
160#if QT_CONFIG(shortcut)
175const QKeyBinding QPlatformThemePrivate::keyBindings[] = {
344const uint QPlatformThemePrivate::numberOfKeyBindings =
sizeof(QPlatformThemePrivate::keyBindings)/(
sizeof(
QKeyBinding));
359 const bool darkAppearance = theme
363 const QColor backGround = darkAppearance ?
QColor(50, 50, 50) :
QColor(239, 239, 239);
365 const QColor mid = (backGround.darker(130));
368 const QColor disabledBase(backGround);
373 const QColor hightlightedText = darkAppearance ? windowText :
Qt::white;
374 const QColor disabledText = darkAppearance ?
QColor(130, 130, 130) :
QColor(190, 190, 190);
378 const QColor disabledHighlight(145, 145, 145);
382 QPalette fusionPalette(windowText, backGround, light, dark, mid,
text,
base);
409 return fusionPalette;
459 if (!
d->systemPalette)
461 return d->systemPalette;
675#ifndef QT_NO_SYSTEMTRAYICON
701#if QT_CONFIG(shortcut)
703struct ByStandardKey {
704 typedef bool result_type;
707 {
return lhs < rhs; }
727 QList <QKeySequence>
list;
729 std::pair<const QKeyBinding *, const QKeyBinding *>
range =
730 std::equal_range(QPlatformThemePrivate::keyBindings,
731 QPlatformThemePrivate::keyBindings + QPlatformThemePrivate::numberOfKeyBindings,
732 key, ByStandardKey());
740 if (
it->priority > 0)
762#if QT_CONFIG(shortcut)
830 constexpr QChar wideOpen = u
'\uff08', wideClose = u
'\uff09';
833 if (
text[1] != u
'&' ||
text[2] == u
'&')
849 while (finalDest > 0 && returnText.at(finalDest - 1).isSpace())
864 unsigned result = 1u << keyboardScheme;
865#if QT_CONFIG(shortcut)
876 return d_func()->name;
881#include "moc_qplatformtheme.cpp"
The QColor class provides colors based on RGB, HSV or CMYK values.
QColor darker(int f=200) const noexcept
void setAlpha(int alpha)
Sets the alpha of this color to alpha.
QColor lighter(int f=150) const noexcept
static QString translate(const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
\threadsafe
static QPlatformIntegration * platformIntegration()
static QPlatformTheme * platformTheme()
The QIconEngine class provides an abstract base class for QIcon renderers.
An icon engine based on icon entries collected by QIconLoader.
The QIcon class provides scalable icons in different modes and states.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
@ InsertParagraphSeparator
void prepend(rvalue_ref t)
void append(parameter_type t)
The QPalette class contains color groups for each widget state.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
QString sliced(qsizetype pos) const &
void truncate(qsizetype pos)
Truncates the string at the given position index.
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
qsizetype size() const noexcept
Returns the number of characters in this string.
QString first(qsizetype n) const &
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
QSet< QString >::iterator it
Combined button and popup list for selecting options.
QList< QString > QStringList
Constructs a string list that contains the given string, str.
GLenum GLuint GLintptr GLsizeiptr size
[1]
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) noexcept
std::uniform_real_distribution dist(1, 2.5)
[2]
QKeySequence::StandardKey standardKey