path: root/src/widgets/styles/qwindowsxpstyle_p_p.h
diff options
authorFriedemann Kleint <>2014-03-13 14:10:09 +0100
committerThe Qt Project <>2014-03-14 22:40:36 +0100
commit176342e70a1ba7864a5b5dac14d12d4091ef5bd9 (patch)
tree4026a23bc6d2c0c21cf39ebe56916ca08034aaac /src/widgets/styles/qwindowsxpstyle_p_p.h
parent9ceeaaac7984523fdc08c2040fcadf5698254c2d (diff)
QWindowsXP/VistaStyle: Fix detection of item view delegate line edits.
The old code tried to check the 2nd parent for inheritance from QAbstractItemView. This also triggers for line edits on a QDialog parented on the item view. Introduce convenience function that checks for top levels in the chain. Task-number: QTBUG-37504 Change-Id: I932f8efdb4764e9b1eea84c802bf7e8718338e1d Reviewed-by: J-P Nurmi <> Reviewed-by: Jens Bache-Wiig <>
Diffstat (limited to 'src/widgets/styles/qwindowsxpstyle_p_p.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/styles/qwindowsxpstyle_p_p.h b/src/widgets/styles/qwindowsxpstyle_p_p.h
index 27d9c9acc9..7327fa5581 100644
--- a/src/widgets/styles/qwindowsxpstyle_p_p.h
+++ b/src/widgets/styles/qwindowsxpstyle_p_p.h
@@ -350,6 +350,7 @@ public:
static HTHEME createTheme(int theme, HWND hwnd);
static QString themeName(int theme);
static inline bool hasTheme(int theme) { return theme >= 0 && theme < NThemes && m_themes[theme]; }
+ static bool isItemViewDelegateLineEdit(const QWidget *widget);
QIcon dockFloat, dockClose;