diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-10-17 15:55:03 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-10-19 15:40:23 +0000 |
commit | bf15e22cee235b31f43032e7b9862926a92fa75c (patch) | |
tree | 48535f7e7ddbde9c8792615db54293ea9cf31db6 /src/plugins/styles/windowsvista/qwindowsxpstyle_p_p.h | |
parent | 84f006b671ace23d851fea9045ee727552e041b0 (diff) |
QWindowsXPStyle: Add debug operators for the theme data
This helps to debug style issues.
Change-Id: If2c236d6666512bf1658d951f9b304ce4d129357
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/styles/windowsvista/qwindowsxpstyle_p_p.h')
-rw-r--r-- | src/plugins/styles/windowsvista/qwindowsxpstyle_p_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/styles/windowsvista/qwindowsxpstyle_p_p.h b/src/plugins/styles/windowsvista/qwindowsxpstyle_p_p.h index 721a734829..4f3fd9c48d 100644 --- a/src/plugins/styles/windowsvista/qwindowsxpstyle_p_p.h +++ b/src/plugins/styles/windowsvista/qwindowsxpstyle_p_p.h @@ -64,6 +64,8 @@ QT_BEGIN_NAMESPACE +class QDebug; + // TMT_TEXTSHADOWCOLOR is wrongly defined in mingw #if TMT_TEXTSHADOWCOLOR != 3818 #undef TMT_TEXTSHADOWCOLOR @@ -181,6 +183,12 @@ struct ThemeMapData { hasAlphaChannel(false), wasAlphaSwapped(false), hadInvalidAlpha(false) {} }; +#ifndef QT_NO_DEBUG_STREAM +QDebug operator<<(QDebug d, const XPThemeData &t); +QDebug operator<<(QDebug d, const ThemeMapKey &k); +QDebug operator<<(QDebug d, const ThemeMapData &td); +#endif + class QWindowsXPStylePrivate : public QWindowsStylePrivate { Q_DECLARE_PUBLIC(QWindowsXPStyle) |