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>.
|
#include <qandroidplatformtheme.h>
Static Public Member Functions | |
static QAndroidPlatformTheme * | instance (QAndroidPlatformNativeInterface *androidPlatformNativeInterface=nullptr) |
Static Public Member Functions inherited from QPlatformTheme | |
static QVariant | defaultThemeHint (ThemeHint hint) |
static QString | defaultStandardButtonText (int button) |
static QString | removeMnemonics (const QString &original) |
Definition at line 32 of file qandroidplatformtheme.h.
QAndroidPlatformTheme::~QAndroidPlatformTheme | ( | ) |
Definition at line 327 of file qandroidplatformtheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 424 of file qandroidplatformtheme.cpp.
References QAndroidPlatformIntegration::colorScheme().
Referenced by updateStyle().
|
overridevirtual |
Factory function for the QIconEngine used by QIcon::fromTheme().
By default this function returns a QIconLoaderEngine, but subclasses can reimplement it to provide their own.
It is especially useful to benefit from some platform specific facilities or optimizations like an inter-process cache in systems mostly built with Qt.
Reimplemented from QPlatformTheme.
Definition at line 494 of file qandroidplatformtheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 562 of file qandroidplatformtheme.cpp.
References QPlatformTheme::FileDialog, and QPlatformTheme::MessageDialog.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 404 of file qandroidplatformtheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 397 of file qandroidplatformtheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 411 of file qandroidplatformtheme.cpp.
References qCDebug.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 481 of file qandroidplatformtheme.cpp.
References fontType(), it, and QPlatformTheme::SystemFont.
|
static |
Definition at line 308 of file qandroidplatformtheme.cpp.
Referenced by QAndroidPlatformIntegration::createPlatformTheme(), and QAndroidPlatformIntegration::updateColorScheme().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 457 of file qandroidplatformtheme.cpp.
References it, and paletteType().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 418 of file qandroidplatformtheme.cpp.
References QtAndroidMenu::openOptionsMenu(), and qCDebug.
|
overridevirtual |
Returns the text of a standard button.
Reimplemented from QPlatformTheme.
Definition at line 538 of file qandroidplatformtheme.cpp.
References button, QPlatformDialogHelper::No, QPlatformDialogHelper::NoToAll, QPlatformTheme::standardButtonText(), QCoreApplication::translate(), QPlatformDialogHelper::Yes, and QPlatformDialogHelper::YesToAll.
Reimplemented from QPlatformTheme.
Definition at line 499 of file qandroidplatformtheme.cpp.
References QPlatformDialogHelper::AndroidLayout, QPlatformTheme::DialogButtonBoxLayout, hint(), QPlatformTheme::MouseDoubleClickDistance, QScreen::physicalDotsPerInch, QGuiApplicationPrivate::platformIntegration(), Q_FALLTHROUGH, qEnvironmentVariableIntValue(), qRound(), ret, QAndroidPlatformIntegration::screen(), QPlatformScreen::screen(), screen, QPlatformTheme::StyleNames, and QPlatformTheme::themeHint().
void QAndroidPlatformTheme::updateColorScheme | ( | ) |
Definition at line 332 of file qandroidplatformtheme.cpp.
References QWindowSystemInterface::handleThemeChange(), and updateStyle().
void QAndroidPlatformTheme::updateStyle | ( | ) |
Definition at line 338 of file qandroidplatformtheme.cpp.
References QPalette::Active, base, QPalette::Base, Qt::black, button, QPalette::Button, QPalette::ButtonText, colorScheme(), Qt::Dark, QPalette::Dark, QColor::darker(), QPalette::Disabled, QPalette::Highlight, QPalette::HighlightedText, QPalette::Inactive, QColor::lighter(), loadAndroidStyle(), QPalette::Midlight, QPalette::setBrush(), QPalette::Shadow, text, QPalette::Text, and QPalette::WindowText.
Referenced by updateColorScheme().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 553 of file qandroidplatformtheme.cpp.
References QPlatformTheme::FileDialog, QPlatformTheme::MessageDialog, and qEnvironmentVariableIntValue().