Replace Qt::MidButton with Qt::MiddleButton

This commit is contained in:
Jonas Kvinge
2020-08-23 03:27:24 +02:00
parent 1ae4938da3
commit d23da7a612
4 changed files with 6 additions and 6 deletions

View File

@@ -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;
}