Merge pull request #3810 from RytoEX/qt-midbutton
UI: Use Qt::MiddleButton instead of deprecated Qt::MidButton
This commit is contained in:
commit
96da863fbc
@ -101,7 +101,7 @@ void OBSHotkeyEdit::mousePressEvent(QMouseEvent *event)
|
|||||||
case Qt::MouseButtonMask:
|
case Qt::MouseButtonMask:
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case Qt::MidButton:
|
case Qt::MiddleButton:
|
||||||
new_key.key = OBS_KEY_MOUSE3;
|
new_key.key = OBS_KEY_MOUSE3;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ QObject *CreateShortcutFilter()
|
|||||||
case Qt::MouseButtonMask:
|
case Qt::MouseButtonMask:
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
case Qt::MidButton:
|
case Qt::MiddleButton:
|
||||||
hotkey.key = OBS_KEY_MOUSE3;
|
hotkey.key = OBS_KEY_MOUSE3;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -15,6 +15,6 @@ int SliderAbsoluteSetStyle::styleHint(QStyle::StyleHint hint,
|
|||||||
QStyleHintReturn *returnData = 0) const
|
QStyleHintReturn *returnData = 0) const
|
||||||
{
|
{
|
||||||
if (hint == QStyle::SH_Slider_AbsoluteSetButtons)
|
if (hint == QStyle::SH_Slider_AbsoluteSetButtons)
|
||||||
return (Qt::LeftButton | Qt::MidButton);
|
return (Qt::LeftButton | Qt::MiddleButton);
|
||||||
return QProxyStyle::styleHint(hint, option, widget, returnData);
|
return QProxyStyle::styleHint(hint, option, widget, returnData);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user