diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-04-07 12:14:22 +0200 |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-04-07 12:19:32 +0200 |
commit | 467b23fcff9f25a14abf051edfb2373c36172fc9 (patch) | |
tree | 7ff07fa85fc7d91d6f6a1c4a640aa9f439f88caf /src/gui/styles/qwindowsvistastyle.cpp | |
parent | d8f76432c3937690c37972136c02a5a264bc941f (diff) | |
download | qt4-tools-467b23fcff9f25a14abf051edfb2373c36172fc9.tar.gz |
Fixes missing hover on QListView in Vista
We did not enable hover on list view item views. This is
inconsistent with how QTreeView works as well as different
from how native icon views behave.
Reviewed-by: Prasanth Ullattil
Task number: 242519
Diffstat (limited to 'src/gui/styles/qwindowsvistastyle.cpp')
-rw-r--r-- | src/gui/styles/qwindowsvistastyle.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/styles/qwindowsvistastyle.cpp b/src/gui/styles/qwindowsvistastyle.cpp index b14b8b3932..013ca1efb5 100644 --- a/src/gui/styles/qwindowsvistastyle.cpp +++ b/src/gui/styles/qwindowsvistastyle.cpp @@ -2396,6 +2396,9 @@ void QWindowsVistaStyle::polish(QWidget *widget) else if (QTreeView *tree = qobject_cast<QTreeView *> (widget)) { tree->viewport()->setAttribute(Qt::WA_Hover); } + else if (QListView *list = qobject_cast<QListView *> (widget)) { + list->viewport()->setAttribute(Qt::WA_Hover); + } } /*! |