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[] = {
343const uint QPlatformThemePrivate::numberOfKeyBindings =
sizeof(QPlatformThemePrivate::keyBindings)/(
sizeof(
QKeyBinding));
358 const bool darkAppearance = theme
362 const QColor backGround = darkAppearance ?
QColor(50, 50, 50) :
QColor(239, 239, 239);
367 const QColor disabledBase(backGround);
372 const QColor hightlightedText = darkAppearance ? windowText :
Qt::white;
373 const QColor disabledText = darkAppearance ?
QColor(130, 130, 130) :
QColor(190, 190, 190);
377 const QColor disabledHighlight(145, 145, 145);
381 QPalette fusionPalette(windowText, backGround, light, dark, mid,
text,
base);
408 return fusionPalette;
453 if (!
d->systemPalette)
455 return d->systemPalette;
669#ifndef QT_NO_SYSTEMTRAYICON
695#if QT_CONFIG(shortcut)
697struct ByStandardKey {
698 typedef bool result_type;
701 {
return lhs < rhs; }
721 QList <QKeySequence>
list;
723 std::pair<const QKeyBinding *, const QKeyBinding *>
range =
724 std::equal_range(QPlatformThemePrivate::keyBindings,
725 QPlatformThemePrivate::keyBindings + QPlatformThemePrivate::numberOfKeyBindings,
726 key, ByStandardKey());
734 if (
it->priority > 0)
756#if QT_CONFIG(shortcut)
824 constexpr QChar wideOpen = u
'\uff08', wideClose = u
'\uff09';
827 if (
text[1] != u
'&' ||
text[2] == u
'&')
843 while (finalDest > 0 && returnText.
at(finalDest - 1).
isSpace())
858 unsigned result = 1u << keyboardScheme;
859#if QT_CONFIG(shortcut)
870 return d_func()->name;
875#include "moc_qplatformtheme.cpp"
constexpr bool isSpace() const noexcept
Returns true if the character is a separator character (Separator_* categories or certain code points...
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
\inmodule QtCore \reentrant
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.
void setBrush(ColorRole cr, const QBrush &brush)
Sets the brush for the given color role to the specified brush for all groups in the palette.
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.
void truncate(qsizetype pos)
Truncates the string at the given position index.
qsizetype size() const
Returns the number of characters in this string.
QString first(qsizetype n) const
const QChar at(qsizetype i) const
Returns the character at the given index position in the string.
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QString sliced(qsizetype pos) const
int toInt(bool *ok=nullptr) const
Returns the variant as an int if the variant has userType() \l QMetaType::Int, \l QMetaType::Bool,...
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.
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