Treeview does not seem to need WA_MouseTracking set, even with QGtkStyle items still highlight under mouse. And enabling WA_MouseTracking here seems to cause drag-n-drop errors if an item is dragged onto playqueue whilst playqueue has a selected item!

BUG:145
This commit is contained in:
craig.p.drummond
2013-02-07 18:20:52 +00:00
committed by craig.p.drummond
parent 76786e254a
commit ccc5f9b01a

View File

@@ -42,7 +42,11 @@ TreeView::TreeView(QWidget *parent)
setAlternatingRowColors(true);
setSelectionMode(QAbstractItemView::ExtendedSelection);
setSelectionBehavior(QAbstractItemView::SelectRows);
setAttribute(Qt::WA_MouseTracking);
// Treeview does not seem to need WA_MouseTracking set, even with QGtkStyle items still
// highlight under mouse. And enabling WA_MouseTracking here seems to cause drag-n-drop
// errors if an item is dragged onto playqueue whilst playqueue has a selected item!
// BUG:145
//setAttribute(Qt::WA_MouseTracking);
}
TreeView::~TreeView()
@@ -166,4 +170,3 @@ void TreeView::correctSelection()
setCurrentIndex(currentIndex());
selectionModel()->select(s, QItemSelectionModel::SelectCurrent);
}