summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qwindowsvistastyle.cpp
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2009-04-07 10:14:22 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2009-04-07 10:19:32 (GMT)
commit467b23fcff9f25a14abf051edfb2373c36172fc9 (patch)
tree7ff07fa85fc7d91d6f6a1c4a640aa9f439f88caf /src/gui/styles/qwindowsvistastyle.cpp
parentd8f76432c3937690c37972136c02a5a264bc941f (diff)
downloadQt-467b23fcff9f25a14abf051edfb2373c36172fc9.zip
Qt-467b23fcff9f25a14abf051edfb2373c36172fc9.tar.gz
Qt-467b23fcff9f25a14abf051edfb2373c36172fc9.tar.bz2
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.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/styles/qwindowsvistastyle.cpp b/src/gui/styles/qwindowsvistastyle.cpp
index b14b8b3..013ca1e 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);
+ }
}
/*!