From bc9645064ac31cbb9093d041cca1591c9a3e6b75 Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Sun, 31 Jan 2016 14:27:24 +0100 Subject: QWindowsTheme: Provide SHGetStockIconInfo()-related constants on CE Change-Id: I3d0cb8bff811ffbdb8e787b02896717316a4a405 Reviewed-by: Andreas Holzammer Reviewed-by: Friedemann Kleint --- .../platforms/windows/qplatformfunctions_wince.h | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/platforms/windows/qplatformfunctions_wince.h b/src/plugins/platforms/windows/qplatformfunctions_wince.h index 80dc64d8d2..309191537a 100644 --- a/src/plugins/platforms/windows/qplatformfunctions_wince.h +++ b/src/plugins/platforms/windows/qplatformfunctions_wince.h @@ -340,5 +340,32 @@ HWND qt_wince_SetClipboardViewer( ); #define SetClipboardViewer(a) qt_wince_SetClipboardViewer(a) +/* Shell stock icon IDs + SHGetStockIconInfo() is not available on CE, but we're using these + constants in code that is built on CE as well */ + enum + { + SIID_INVALID = -1, + SIID_DOCNOASSOC = 0, + SIID_FOLDER = 3, + SIID_FOLDEROPEN = 4, + SIID_DRIVE35 = 6, + SIID_DRIVEFIXED = 8, + SIID_DRIVENET = 9, + SIID_DRIVECD = 11, + SIID_HELP = 23, + SIID_RECYCLER = 31, + SIID_DRIVEDVD = 59, + SIID_SHIELD = 77, + SIID_WARNING = 78, + SIID_INFO = 79, + SIID_ERROR = 80 +}; + +#ifndef SHGSI_LINKOVERLAY +// Value is wrong, but doesn't matter, not used at runtime +#define SHGSI_LINKOVERLAY 0 +#endif + #endif // Q_OS_WINCE #endif // QPLATFORMFUNCTIONS_WCE_H -- cgit v1.2.3