Enable mouse-tracking for all list/tree views.

BUG:28
This commit is contained in:
craig.p.drummond@gmail.com
2012-06-11 11:09:27 +00:00
committed by craig.p.drummond@gmail.com
parent 1087e36433
commit 7c893bba51
3 changed files with 3 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
19. Fix genre filtering in albums view - filter was not updated when genre was
changed.
20. Fix background painting in lyrics view for non-oxygen styles.
21. Enable mouse-tracking for all list/tree views.
0.7.1
-----

View File

@@ -37,6 +37,7 @@ ListView::ListView(QWidget *parent)
setSelectionMode(QAbstractItemView::ExtendedSelection);
setAlternatingRowColors(true);
setUniformItemSizes(true);
setAttribute(Qt::WA_MouseTracking);
}
ListView::~ListView()

View File

@@ -37,6 +37,7 @@ TreeView::TreeView(QWidget *parent)
setAlternatingRowColors(true);
setSelectionMode(QAbstractItemView::ExtendedSelection);
setSelectionBehavior(QAbstractItemView::SelectRows);
setAttribute(Qt::WA_MouseTracking);
}
TreeView::~TreeView()