diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-04-04 14:56:45 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-04 18:10:11 +0200 |
commit | b1a02ce010e01d69639ae829754c71b39e3371bc (patch) | |
tree | d85ecf4f098e519d1dea38e8a667137c8a42409d /src/widgets/styles/qwindowsvistastyle_p.h | |
parent | 58b8ea716197516657d03f19b0d986fd180d43fa (diff) |
Windows Vista: Fix painting of item view items.
The old QWidget-based treeViewHelper() function silently failed
since the widget no longer had a HWND.
Use a native Window handle instead.
Change-Id: I6902677c565bb165f29b9d1c6fd0d28d9870d567
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'src/widgets/styles/qwindowsvistastyle_p.h')
-rw-r--r-- | src/widgets/styles/qwindowsvistastyle_p.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets/styles/qwindowsvistastyle_p.h b/src/widgets/styles/qwindowsvistastyle_p.h index 7205ad2d19..78282d01ef 100644 --- a/src/widgets/styles/qwindowsvistastyle_p.h +++ b/src/widgets/styles/qwindowsvistastyle_p.h @@ -205,12 +205,13 @@ public: QWindowsVistaAnimation* widgetAnimation(const QWidget *) const; void timerEvent(); bool transitionsEnabled() const; - QWidget *treeViewHelper(); private: + bool initTreeViewTheming(); + QList <QWindowsVistaAnimation*> animations; QBasicTimer animationTimer; - QWidget *m_treeViewHelper; + HWND m_treeViewHelper; }; QT_END_NAMESPACE |