diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2014-03-13 13:10:09 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-17 09:56:48 (GMT) |
commit | 14d436698c53f070e8cc51bc2e3ef34a751af934 (patch) | |
tree | da463a11e48ba529c43826b423dbb0b325e4522a /src/gui/styles/qwindowsxpstyle_p.h | |
parent | 6ede9f99f98ed511b78935f7c6537470dce94239 (diff) | |
download | Qt-14d436698c53f070e8cc51bc2e3ef34a751af934.zip Qt-14d436698c53f070e8cc51bc2e3ef34a751af934.tar.gz Qt-14d436698c53f070e8cc51bc2e3ef34a751af934.tar.bz2 |
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)
Diffstat (limited to 'src/gui/styles/qwindowsxpstyle_p.h')
-rw-r--r-- | src/gui/styles/qwindowsxpstyle_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/styles/qwindowsxpstyle_p.h b/src/gui/styles/qwindowsxpstyle_p.h index 13d0c94..91560ce 100644 --- a/src/gui/styles/qwindowsxpstyle_p.h +++ b/src/gui/styles/qwindowsxpstyle_p.h @@ -321,6 +321,8 @@ public: bool fixAlphaChannel(const QRect &rect); bool swapAlphaChannel(const QRect &rect, bool allPixels = false); + static bool isItemViewDelegateLineEdit(const QWidget *widget); + QRgb groupBoxTextColor; QRgb groupBoxTextColorDisabled; QRgb sliderTickColor; |