![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qwasmtheme.h>
Public Member Functions | |
QWasmTheme () | |
~QWasmTheme () | |
const QPalette * | palette (Palette type=SystemPalette) const override |
Return a color palette for type type. | |
Qt::ColorScheme | colorScheme () const override |
void | requestColorScheme (Qt::ColorScheme scheme) override |
Qt::ContrastPreference | contrastPreference () const override |
QVariant | themeHint (ThemeHint hint) const override |
const QFont * | font (Font type) const override |
void | onColorSchemeChange () |
void | onContrastPreferenceChange () |
Public Member Functions inherited from QPlatformTheme | |
QPlatformTheme () | |
virtual | ~QPlatformTheme () |
virtual QPlatformMenuItem * | createPlatformMenuItem () const |
virtual QPlatformMenu * | createPlatformMenu () const |
virtual QPlatformMenuBar * | createPlatformMenuBar () const |
virtual void | showPlatformMenuBar () |
virtual bool | usePlatformNativeDialog (DialogType type) const |
virtual QPlatformDialogHelper * | createPlatformDialogHelper (DialogType type) const |
virtual QPlatformSystemTrayIcon * | createPlatformSystemTrayIcon () const |
Factory function for QSystemTrayIcon. | |
virtual QPixmap | standardPixmap (StandardPixmap sp, const QSizeF &size) const |
Return a pixmap for standardPixmap, at the given size. | |
virtual QIcon | fileIcon (const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions={ }) const |
Return an icon for fileInfo, observing iconOptions. | |
virtual QIconEngine * | createIconEngine (const QString &iconName) const |
Factory function for the QIconEngine used by QIcon::fromTheme(). | |
virtual QString | standardButtonText (int button) const |
Returns the text of a standard button. | |
QString | name () const |
Public Attributes | |
QFont * | fixedFont = nullptr |
Definition at line 48 of file qwasmtheme.h.
QWasmTheme::QWasmTheme | ( | ) |
Definition at line 51 of file qwasmtheme.cpp.
QWasmTheme::~QWasmTheme | ( | ) |
Definition at line 76 of file qwasmtheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 94 of file qwasmtheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 108 of file qwasmtheme.cpp.
Reimplemented from QPlatformTheme.
Definition at line 122 of file qwasmtheme.cpp.
void QWasmTheme::onColorSchemeChange | ( | ) |
Definition at line 130 of file qwasmtheme.cpp.
void QWasmTheme::onContrastPreferenceChange | ( | ) |
Definition at line 141 of file qwasmtheme.cpp.
|
overridevirtual |
Return a color palette for type type.
When relying on system color palette keep in mind that it is lazily initialized and cached. If it needs to be updated (i.e. due to ColorScheme changes), it's up to the caller to take care of it. See requestColorScheme
.
Reimplemented from QPlatformTheme.
Definition at line 82 of file qwasmtheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 99 of file qwasmtheme.cpp.
Reimplemented from QPlatformTheme.
Definition at line 113 of file qwasmtheme.cpp.
QFont* QWasmTheme::fixedFont = nullptr |
Definition at line 60 of file qwasmtheme.h.