mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-18 20:40:43 +01:00
Allow to change rating when "inline" editing is not enabled
This commit is contained in:
parent
a94d9226b7
commit
631c120515
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user