QWindowsXP/VistaStyle: Fix detection of item view delegate line edits.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Thu, 13 Mar 2014 13:10:09 +0000 (14:10 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 17 Mar 2014 09:56:48 +0000 (10:56 +0100)
commit14d436698c53f070e8cc51bc2e3ef34a751af934
treeda463a11e48ba529c43826b423dbb0b325e4522a
parent6ede9f99f98ed511b78935f7c6537470dce94239
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 <jpnurmi@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
(cherry picked from qtbase/176342e70a1ba7864a5b5dac14d12d4091ef5bd9)
src/gui/styles/qwindowsvistastyle.cpp
src/gui/styles/qwindowsxpstyle.cpp
src/gui/styles/qwindowsxpstyle_p.h