![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qwindowstheme.h>
Public Member Functions | |
| QWindowsTheme () | |
| ~QWindowsTheme () override | |
| bool | usePlatformNativeDialog (DialogType type) const override |
| QPlatformDialogHelper * | createPlatformDialogHelper (DialogType type) const override |
| QVariant | themeHint (ThemeHint) const override |
| Qt::ColorScheme | colorScheme () const override |
| void | requestColorScheme (Qt::ColorScheme scheme) override |
| Qt::ContrastPreference | contrastPreference () const override |
| Qt::MotionPreference | motionPreference () const override |
| const QPalette * | palette (Palette type=SystemPalette) const override |
| Return a color palette for type type. | |
| const QFont * | font (Font type=SystemFont) const override |
| QPixmap | standardPixmap (StandardPixmap sp, const QSizeF &size) const override |
| Return a pixmap for standardPixmap, at the given size. | |
| QIcon | fileIcon (const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions={}) const override |
| Return an icon for fileInfo, observing iconOptions. | |
| QIconEngine * | createIconEngine (const QString &iconName) const override |
| Factory function for the QIconEngine used by QIcon::fromTheme(). | |
| void | displayChanged () |
| QList< QSize > | availableFileIconSizes () const |
| QPlatformMenuItem * | createPlatformMenuItem () const override |
| QPlatformMenu * | createPlatformMenu () const override |
| QPlatformMenuBar * | createPlatformMenuBar () const override |
| void | showPlatformMenuBar () override |
| void | refreshFonts () |
| void | refresh () |
| Public Member Functions inherited from QPlatformTheme | |
| QPlatformTheme () | |
| virtual | ~QPlatformTheme () |
| virtual QPlatformSystemTrayIcon * | createPlatformSystemTrayIcon () const |
| Factory function for QSystemTrayIcon. | |
| virtual QString | standardButtonText (int button) const |
| Returns the text of a standard button. | |
| QString | name () const |
Static Public Member Functions | |
| static QWindowsTheme * | instance () |
| static void | handleThemeChange () |
| static bool | useNativeMenus () |
| static QPalette | systemPalette (Qt::ColorScheme) |
| static bool | queryHighContrast () |
| Static Public Member Functions inherited from QPlatformTheme | |
| static QVariant | defaultThemeHint (ThemeHint hint) |
| static QString | defaultStandardButtonText (int button) |
| static QString | removeMnemonics (const QString &original) |
Static Public Attributes | |
| static const char * | name = "windows" |
Friends | |
| class | QWindowsContext |
Definition at line 19 of file qwindowstheme.h.
| QWindowsTheme::QWindowsTheme | ( | ) |
Definition at line 543 of file qwindowstheme.cpp.
References QWindowsWindowClassRegistry::instance(), and refresh().
|
override |
Definition at line 564 of file qwindowstheme.cpp.
Definition at line 54 of file qwindowstheme.h.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 652 of file qwindowstheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 677 of file qwindowstheme.cpp.
|
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 1240 of file qwindowstheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 871 of file qwindowstheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1296 of file qwindowstheme.cpp.
References useNativeMenus().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1306 of file qwindowstheme.cpp.
References useNativeMenus().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1290 of file qwindowstheme.cpp.
References useNativeMenus().
|
inline |
Definition at line 52 of file qwindowstheme.h.
|
overridevirtual |
Return an icon for fileInfo, observing iconOptions.
This function is queried by QFileIconProvider and similar classes to obtain an icon for a file. If it does not return a non-null icon, fileIconPixmap() is queried for a specific size.
Reimplemented from QPlatformTheme.
Definition at line 1235 of file qwindowstheme.cpp.
|
inlineoverridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 44 of file qwindowstheme.h.
|
static |
Definition at line 689 of file qwindowstheme.cpp.
References QWindowsIntegration::instance(), instance(), refresh(), and QWindowsIntegration::updateApplicationBadge().
Referenced by requestColorScheme().
|
inlinestatic |
Definition at line 26 of file qwindowstheme.h.
Referenced by QWindowsContext::~QWindowsContext(), QWindowsFileIconEngine::availableSizes(), QWindowsScreenManager::handleScreenChanges(), and handleThemeChange().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 683 of file qwindowstheme.cpp.
|
inlineoverridevirtual |
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 42 of file qwindowstheme.h.
|
static |
Definition at line 1281 of file qwindowstheme.cpp.
| void QWindowsTheme::refresh | ( | ) |
Definition at line 795 of file qwindowstheme.cpp.
References refreshFonts().
Referenced by QWindowsTheme(), and handleThemeChange().
| void QWindowsTheme::refreshFonts | ( | ) |
Definition at line 823 of file qwindowstheme.cpp.
Referenced by QWindowsScreenManager::handleScreenChanges(), and refresh().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 671 of file qwindowstheme.cpp.
References handleThemeChange().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1312 of file qwindowstheme.cpp.
|
overridevirtual |
Return a pixmap for standardPixmap, at the given size.
The implementation should not take system DPR into account, and always return a pixmap with a DPR of 1. It's up to the consumer to account for DPR and request a pixmap of the right size.
Reimplemented from QPlatformTheme.
Definition at line 917 of file qwindowstheme.cpp.
|
static |
Definition at line 742 of file qwindowstheme.cpp.
Reimplemented from QPlatformTheme.
Definition at line 608 of file qwindowstheme.cpp.
References QWindowsContext::defaultDPI(), QWindowsContext::instance(), and uiEffects().
|
static |
Definition at line 1263 of file qwindowstheme.cpp.
References doUseNativeMenus().
Referenced by createPlatformMenu(), createPlatformMenuBar(), and createPlatformMenuItem().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 866 of file qwindowstheme.cpp.
|
friend |
Definition at line 86 of file qwindowstheme.h.
|
static |
Definition at line 66 of file qwindowstheme.h.
Referenced by QWindowsIntegration::createPlatformTheme(), testing.tools.encode_pdf_filter._PdfStream::RegisterByName(), and QWindowsIntegration::themeNames().