![]() |
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 |
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 18 of file qwindowstheme.h.
QWindowsTheme::QWindowsTheme | ( | ) |
Definition at line 540 of file qwindowstheme.cpp.
References refresh().
|
override |
Definition at line 561 of file qwindowstheme.cpp.
Definition at line 52 of file qwindowstheme.h.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 649 of file qwindowstheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 674 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 1228 of file qwindowstheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 859 of file qwindowstheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1284 of file qwindowstheme.cpp.
References useNativeMenus().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1294 of file qwindowstheme.cpp.
References useNativeMenus().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1278 of file qwindowstheme.cpp.
References useNativeMenus().
|
inline |
Definition at line 50 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 1223 of file qwindowstheme.cpp.
|
inlineoverridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 42 of file qwindowstheme.h.
|
static |
Definition at line 680 of file qwindowstheme.cpp.
References QWindowsIntegration::instance(), instance(), refresh(), and QWindowsIntegration::updateApplicationBadge().
Referenced by requestColorScheme().
|
inlinestatic |
Definition at line 25 of file qwindowstheme.h.
Referenced by QWindowsContext::~QWindowsContext(), QWindowsFileIconEngine::availableSizes(), QWindowsScreenManager::handleScreenChanges(), and handleThemeChange().
|
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 40 of file qwindowstheme.h.
|
static |
Definition at line 1269 of file qwindowstheme.cpp.
void QWindowsTheme::refresh | ( | ) |
Definition at line 783 of file qwindowstheme.cpp.
References refreshFonts().
Referenced by QWindowsTheme(), and handleThemeChange().
void QWindowsTheme::refreshFonts | ( | ) |
Definition at line 811 of file qwindowstheme.cpp.
Referenced by QWindowsScreenManager::handleScreenChanges(), and refresh().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 668 of file qwindowstheme.cpp.
References handleThemeChange().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1300 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 905 of file qwindowstheme.cpp.
|
static |
Definition at line 730 of file qwindowstheme.cpp.
Reimplemented from QPlatformTheme.
Definition at line 605 of file qwindowstheme.cpp.
References QWindowsContext::defaultDPI(), QWindowsContext::instance(), and uiEffects().
|
static |
Definition at line 1251 of file qwindowstheme.cpp.
References doUseNativeMenus().
Referenced by createPlatformMenu(), createPlatformMenuBar(), and createPlatformMenuItem().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 854 of file qwindowstheme.cpp.
|
friend |
Definition at line 84 of file qwindowstheme.h.
|
static |
Definition at line 64 of file qwindowstheme.h.
Referenced by QWindowsIntegration::createPlatformTheme(), testing.tools.encode_pdf_filter._PdfStream::RegisterByName(), and QWindowsIntegration::themeNames().