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>.
Loading...
Searching...
No Matches
qwindowsthemecache.cpp File Reference

(d54d28858f4072fc8ebb935e81bec80537f0ad44)

#include "qwindowsthemecache_p.h"
#include <QtCore/qdebug.h>
#include <QtCore/qhash.h>
+ Include dependency graph for qwindowsthemecache.cpp:

Go to the source code of this file.

Typedefs

typedef std::array< HTHEME, std::size(themeNames)> ThemeArray
 
typedef QHash< HWND, ThemeArrayThemesCache
 

Functions

 Q_GLOBAL_STATIC (ThemesCache, themesCache)
 
static void clearThemes (ThemeArray &themes)
 

Variables

QT_BEGIN_NAMESPACE constexpr const wchar_t * themeNames []
 

Typedef Documentation

◆ ThemeArray

Definition at line 18 of file qwindowsthemecache.cpp.

◆ ThemesCache

typedef QHash<HWND, ThemeArray> ThemesCache

Definition at line 19 of file qwindowsthemecache.cpp.

Function Documentation

◆ clearThemes()

static void clearThemes ( ThemeArray & themes)
static

Definition at line 53 of file qwindowsthemecache.cpp.

Referenced by QWindowsThemeCache::clearAllThemeCaches(), and QWindowsThemeCache::clearThemeCache().

+ Here is the caller graph for this function:

◆ Q_GLOBAL_STATIC()

Q_GLOBAL_STATIC ( ThemesCache ,
themesCache  )

Variable Documentation

◆ themeNames

QT_BEGIN_NAMESPACE constexpr const wchar_t* themeNames[]
constexpr
Initial value:
= {
L"BUTTON", L"COMBOBOX", L"EDIT", L"HEADER", L"LISTVIEW",
L"MENU", L"PROGRESS", L"REBAR", L"SCROLLBAR", L"SPIN",
L"TAB", L"TASKDIALOG", L"TOOLBAR", L"TOOLTIP", L"TRACKBAR",
L"WINDOW", L"STATUS", L"TREEVIEW"
}

Definition at line 11 of file qwindowsthemecache.cpp.

Referenced by QXdgDesktopPortalTheme::QXdgDesktopPortalTheme(), QWindowsThemeCache::createTheme(), QtWaylandClient::getIconSvg(), init_platform(), and QWindowsThemeCache::themeName().