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 <qwindowstheme.h>
Static Public Member Functions | |
static QWindowsTheme * | instance () |
static void | handleSettingsChanged () |
static bool | useNativeMenus () |
static QPalette | systemPalette (Qt::ColorScheme) |
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" |
Definition at line 18 of file qwindowstheme.h.
QWindowsTheme::QWindowsTheme | ( | ) |
Definition at line 452 of file qwindowstheme.cpp.
References QPlatformTheme::NFonts, QPlatformTheme::NPalettes, and refresh().
|
override |
Definition at line 462 of file qwindowstheme.cpp.
Definition at line 51 of file qwindowstheme.h.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 543 of file qwindowstheme.cpp.
Referenced by systemPalette().
|
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 1089 of file qwindowstheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 722 of file qwindowstheme.cpp.
References QWindowsDialogs::createHelper().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1143 of file qwindowstheme.cpp.
References qCDebug, and useNativeMenus().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1153 of file qwindowstheme.cpp.
References qCDebug, and useNativeMenus().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1137 of file qwindowstheme.cpp.
References qCDebug, and useNativeMenus().
|
inline |
Definition at line 49 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 1084 of file qwindowstheme.cpp.
|
inlineoverridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 40 of file qwindowstheme.h.
|
static |
Definition at line 555 of file qwindowstheme.cpp.
References Qt::Dark, QWindowsContext::instance(), QWindowsIntegration::instance(), and instance().
Referenced by QWindowsContext::windowsProc().
|
inlinestatic |
Definition at line 25 of file qwindowstheme.h.
Referenced by QWindowsFileIconEngine::availableSizes(), WindowCreationData::create(), QWindowsScreenManager::handleScreenChanges(), handleSettingsChanged(), qDisplayChangeObserverWndProc(), QWindowsIntegration::setApplicationBadge(), QWindowsWindow::windowEvent(), and QWindowsContext::windowsProc().
|
inlineoverridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 38 of file qwindowstheme.h.
void QWindowsTheme::refresh | ( | ) |
Definition at line 646 of file qwindowstheme.cpp.
References refreshFonts().
Referenced by QWindowsTheme(), and windowsThemeChanged().
void QWindowsTheme::refreshFonts | ( | ) |
Definition at line 674 of file qwindowstheme.cpp.
References QGuiApplication::desktopSettingsAware(), QPlatformTheme::DockWidgetTitleFont, QPlatformTheme::FixedFont, QPlatformTheme::ItemViewFont, QWindowsFontDatabaseBase::LOGFONT_to_QFont(), QPlatformTheme::MdiSubWindowTitleFont, QPlatformTheme::MenuBarFont, QPlatformTheme::MenuFont, QPlatformTheme::MessageBoxFont, QWindowsContext::nonClientMetrics(), qCDebug, QStringLiteral, QFont::setStyleHint(), QPlatformTheme::StatusBarFont, QWindowsFontDatabaseBase::systemDefaultFont(), QPlatformTheme::SystemFont, QPlatformTheme::TipLabelFont, and QFont::TypeWriter.
Referenced by refresh().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1159 of file qwindowstheme.cpp.
References qCDebug.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 774 of file qwindowstheme.cpp.
References QPlatformTheme::ComputerIcon, QPlatformTheme::DesktopIcon, QPlatformTheme::DirClosedIcon, QPlatformTheme::DirHomeIcon, QPlatformTheme::DirIcon, QPlatformTheme::DirLinkIcon, QPlatformTheme::DirLinkOpenIcon, QPlatformTheme::DirOpenIcon, QPainter::drawPixmap(), QPlatformTheme::DriveCDIcon, QPlatformTheme::DriveDVDIcon, QPlatformTheme::DriveFDIcon, QPlatformTheme::DriveHDIcon, QPlatformTheme::DriveNetIcon, QPlatformTheme::FileDialogNewFolder, QPlatformTheme::FileIcon, QPlatformTheme::FileLinkIcon, icon, iconSize, loadIconFromShell32(), QPlatformTheme::MessageBoxCritical, QPlatformTheme::MessageBoxInformation, QPlatformTheme::MessageBoxQuestion, QPlatformTheme::MessageBoxWarning, painter, pixmap, Q_FALLTHROUGH, qt_pixmapFromWinHICON(), sp, QPlatformTheme::standardPixmap(), QPlatformTheme::TrashIcon, and QPlatformTheme::VistaShield.
|
static |
Definition at line 599 of file qwindowstheme.cpp.
References QPalette::Accent, QPalette::Base, QPalette::ButtonText, colorScheme(), Qt::Dark, QPalette::Disabled, disabled, QPalette::Highlight, QPalette::HighlightedText, QPalette::Inactive, Qt::Light, mixColors(), Q_FALLTHROUGH, QPalette::Text, Qt::Unknown, QPalette::Window, and QPalette::WindowText.
Referenced by QWindowsApplication::populateLightSystemPalette().
Reimplemented from QPlatformTheme.
Definition at line 499 of file qwindowstheme.cpp.
References booleanSystemParametersInfo(), QPlatformTheme::ContextMenuOnMouseRelease, QPlatformTheme::DialogButtonBoxLayout, QPlatformTheme::DialogSnapToDefaultButton, QPlatformTheme::DropShadow, dWordSystemParametersInfo(), QVariant::fromValue(), hint(), QPlatformTheme::IconPixmapSizes, QPlatformTheme::IconThemeSearchPaths, iconThemeSearchPaths(), QWindowsContext::instance(), QPlatformTheme::KeyboardScheme, QPlatformTheme::MaximumScrollBarDragDistance, QPlatformTheme::MenuBarFocusOnAltPressRelease, QPlatformTheme::MouseDoubleClickDistance, qRound(), QPlatformTheme::StyleNames, styleNames(), QPlatformTheme::TextCursorWidth, QPlatformTheme::themeHint(), QPlatformTheme::UiEffects, uiEffects(), QPlatformTheme::UseFullScreenForPopupMenu, QPlatformTheme::WheelScrollLines, QPlatformTheme::WindowsKeyboardScheme, and QPlatformDialogHelper::WinLayout.
|
static |
Definition at line 1112 of file qwindowstheme.cpp.
References doUseNativeMenus().
Referenced by QWindowsSystemTrayIcon::createMenu(), createPlatformMenu(), createPlatformMenuBar(), and createPlatformMenuItem().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 717 of file qwindowstheme.cpp.
References QWindowsDialogs::useHelper().
Definition at line 734 of file qwindowstheme.cpp.
References QWindowSystemInterface::handleThemeChange(), refresh(), and window().
|
static |
Definition at line 63 of file qwindowstheme.h.
Referenced by QWindowsIntegration::createPlatformTheme(), and QWindowsIntegration::themeNames().