5#include <QtCore/qdebug.h>
6#include <QtCore/qhash.h>
12 L
"BUTTON", L
"COMBOBOX", L
"EDIT", L
"HEADER", L
"LISTVIEW",
13 L
"MENU", L
"PROGRESS", L
"REBAR", L
"SCROLLBAR", L
"SPIN",
14 L
"TAB", L
"TASKDIALOG", L
"TOOLBAR", L
"TOOLTIP", L
"TRACKBAR",
15 L
"WINDOW", L
"STATUS", L
"TREEVIEW"
24 return theme >= 0 && theme < int(std::size(
themeNames))
31 qWarning(
"Invalid parameters #%d, %p", theme, hwnd);
45 themes[theme] = OpenThemeData(hwnd,
name);
55 for (
auto &theme : themes) {
57 CloseThemeData(theme);
75 for (
auto &themeArray : *
cache)
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromWCharArray(const wchar_t *string, qsizetype size=-1)
QCache< int, Employee > cache
[0]
QSet< QString >::iterator it
void qErrnoWarning(const char *msg,...)
Combined button and popup list for selecting options.
Q_GUI_EXPORT void clearAllThemeCaches()
Q_GUI_EXPORT void clearThemeCache(HWND hwnd)
Q_GUI_EXPORT HTHEME createTheme(int theme, HWND hwnd)
Q_GUI_EXPORT QString themeName(int theme)
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
static QString themeName()
#define qPrintable(string)
QT_BEGIN_NAMESPACE constexpr const wchar_t * themeNames[]
static void clearThemes(ThemeArray &themes)
QHash< HWND, ThemeArray > ThemesCache
std::array< HTHEME, std::size(themeNames)> ThemeArray