![]() |
Qt 6.x
The Qt SDK
|
#include <qandroidplatformtheme.h>
Static Public Member Functions | |
static QAndroidPlatformTheme * | instance (QAndroidPlatformNativeInterface *androidPlatformNativeInterface=nullptr) |
![]() | |
static QVariant | defaultThemeHint (ThemeHint hint) |
static QString | defaultStandardButtonText (int button) |
static QString | removeMnemonics (const QString &original) |
Definition at line 30 of file qandroidplatformtheme.h.
QAndroidPlatformTheme::~QAndroidPlatformTheme | ( | ) |
Definition at line 331 of file qandroidplatformtheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 421 of file qandroidplatformtheme.cpp.
References QAndroidPlatformIntegration::colorScheme().
Referenced by updateStyle().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 554 of file qandroidplatformtheme.cpp.
References QPlatformTheme::FileDialog, and QPlatformTheme::MessageDialog.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 406 of file qandroidplatformtheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 401 of file qandroidplatformtheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 411 of file qandroidplatformtheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 478 of file qandroidplatformtheme.cpp.
References fontType(), it, and QPlatformTheme::SystemFont.
|
static |
Definition at line 312 of file qandroidplatformtheme.cpp.
Referenced by QAndroidPlatformIntegration::createPlatformTheme(), and QAndroidPlatformIntegration::setColorScheme().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 454 of file qandroidplatformtheme.cpp.
References it, and paletteType().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 416 of file qandroidplatformtheme.cpp.
References QtAndroidMenu::openOptionsMenu().
|
overridevirtual |
Returns the text of a standard button.
Reimplemented from QPlatformTheme.
Definition at line 530 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 491 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 336 of file qandroidplatformtheme.cpp.
References QWindowSystemInterface::handleThemeChange(), and updateStyle().
Referenced by QAndroidPlatformIntegration::setColorScheme().
void QAndroidPlatformTheme::updateStyle | ( | ) |
Definition at line 342 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 545 of file qandroidplatformtheme.cpp.
References QPlatformTheme::FileDialog, QPlatformTheme::MessageDialog, and qEnvironmentVariableIntValue().