diff --git a/src/playlist/playlisttabbar.cpp b/src/playlist/playlisttabbar.cpp index 6ca15ae3b..bfa620b93 100644 --- a/src/playlist/playlisttabbar.cpp +++ b/src/playlist/playlisttabbar.cpp @@ -130,7 +130,7 @@ void PlaylistTabBar::contextMenuEvent(QContextMenuEvent *e) { void PlaylistTabBar::mouseReleaseEvent(QMouseEvent *e) { - if (e->button() == Qt::MidButton) { + if (e->button() == Qt::MiddleButton) { // Update menu index menu_index_ = tabAt(e->pos()); Close(); @@ -145,7 +145,7 @@ void PlaylistTabBar::mouseDoubleClickEvent(QMouseEvent *e) { int index = tabAt(e->pos()); // Discard a double click with the middle button - if (e->button() != Qt::MidButton) { + if (e->button() != Qt::MiddleButton) { if (index == -1) { new_->activate(QAction::Trigger); } diff --git a/src/widgets/autoexpandingtreeview.cpp b/src/widgets/autoexpandingtreeview.cpp index ad7f233ca..277abd276 100644 --- a/src/widgets/autoexpandingtreeview.cpp +++ b/src/widgets/autoexpandingtreeview.cpp @@ -126,7 +126,7 @@ void AutoExpandingTreeView::mousePressEvent(QMouseEvent *event) { QTreeView::mousePressEvent(event); //enqueue to playlist with middleClick - if (event->button() == Qt::MidButton) { + if (event->button() == Qt::MiddleButton) { QMimeData *q_mimedata = model()->mimeData(selectedIndexes()); if (MimeData *mimedata = qobject_cast(q_mimedata)) { mimedata->enqueue_now_ = true; diff --git a/src/widgets/fileviewlist.cpp b/src/widgets/fileviewlist.cpp index 6c2bf2003..7ff1defc7 100644 --- a/src/widgets/fileviewlist.cpp +++ b/src/widgets/fileviewlist.cpp @@ -178,7 +178,7 @@ void FileViewList::mousePressEvent(QMouseEvent *e) { emit Forward(); break; // enqueue to playlist with middleClick - case Qt::MidButton: { + case Qt::MiddleButton: { QListView::mousePressEvent(e); // we need to update the menu selection diff --git a/src/widgets/tracksliderslider.cpp b/src/widgets/tracksliderslider.cpp index b0c0e3154..6eefcb6b3 100644 --- a/src/widgets/tracksliderslider.cpp +++ b/src/widgets/tracksliderslider.cpp @@ -62,8 +62,8 @@ void TrackSliderSlider::mousePressEvent(QMouseEvent* e) { int abs_buttons = style()->styleHint(QStyle::SH_Slider_AbsoluteSetButtons); if (abs_buttons & Qt::LeftButton) new_button = Qt::LeftButton; - else if (abs_buttons & Qt::MidButton) - new_button = Qt::MidButton; + else if (abs_buttons & Qt::MiddleButton) + new_button = Qt::MiddleButton; else if (abs_buttons & Qt::RightButton) new_button = Qt::RightButton; }