From 631c12051525078e2694a7fd93a2842a92ce82d4 Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Sat, 6 Sep 2014 17:54:50 +0200 Subject: [PATCH] Allow to change rating when "inline" editing is not enabled --- src/playlist/playlistview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp index c77c1134e..b016a8077 100644 --- a/src/playlist/playlistview.cpp +++ b/src/playlist/playlistview.cpp @@ -729,7 +729,7 @@ void PlaylistView::leaveEvent(QEvent* e) { } void PlaylistView::RatingHoverIn(const QModelIndex& index, const QPoint& pos) { - if (!(editTriggers() & QAbstractItemView::SelectedClicked)) { + if (editTriggers() & QAbstractItemView::NoEditTriggers) { return; } @@ -752,7 +752,7 @@ void PlaylistView::RatingHoverIn(const QModelIndex& index, const QPoint& pos) { } void PlaylistView::RatingHoverOut() { - if (!(editTriggers() & QAbstractItemView::SelectedClicked)) { + if (editTriggers() & QAbstractItemView::NoEditTriggers) { return; } @@ -773,7 +773,7 @@ void PlaylistView::RatingHoverOut() { } void PlaylistView::mousePressEvent(QMouseEvent* event) { - if (!(editTriggers() & QAbstractItemView::SelectedClicked)) { + if (editTriggers() & QAbstractItemView::NoEditTriggers) { QTreeView::mousePressEvent(event); return; }