diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-04-07 10:14:22 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-04-07 10:19:32 (GMT) |
commit | 467b23fcff9f25a14abf051edfb2373c36172fc9 (patch) | |
tree | 7ff07fa85fc7d91d6f6a1c4a640aa9f439f88caf | |
parent | d8f76432c3937690c37972136c02a5a264bc941f (diff) | |
download | Qt-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
-rw-r--r-- | src/gui/styles/qwindowsvistastyle.cpp | 3 | ||||
-rw-r--r-- | src/gui/styles/qwindowsvistastyle_p.h | 1 |
2 files changed, 4 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); + } } /*! diff --git a/src/gui/styles/qwindowsvistastyle_p.h b/src/gui/styles/qwindowsvistastyle_p.h index 877bc50..cef2b71 100644 --- a/src/gui/styles/qwindowsvistastyle_p.h +++ b/src/gui/styles/qwindowsvistastyle_p.h @@ -76,6 +76,7 @@ #include <qscrollbar.h> #include <qprogressbar.h> #include <qdockwidget.h> +#include <qlistview.h> #include <qtreeview.h> #include <qtextedit.h> #include <qmessagebox.h> |