Commit b828ce3f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port away from deprecated Qt::MidButton

parent 06da643b
......@@ -464,7 +464,7 @@ void MarbleDefaultInputHandler::checkReleasedMove(QMouseEvent *event)
}
}
}
if (event->type() == QEvent::MouseMove && !(event->buttons() & Qt::MidButton))
if (event->type() == QEvent::MouseMove && !(event->buttons() & Qt::MiddleButton))
{
d->m_midPressed = false;
}
......@@ -478,7 +478,7 @@ void MarbleDefaultInputHandler::handleMouseButtonPress(QMouseEvent *event)
handleLeftMouseButtonPress(event);
}
if ( event->button() == Qt::MidButton )
if ( event->button() == Qt::MiddleButton )
{
handleMiddleMouseButtonPress(event);
}
......@@ -582,7 +582,7 @@ void MarbleDefaultInputHandler::handleMouseButtonRelease(QMouseEvent *event)
}
}
if (event->button() == Qt::MidButton)
if (event->button() == Qt::MiddleButton)
{
d->m_midPressed = false;
......
......@@ -182,7 +182,7 @@ void MarbleLineEdit::mouseReleaseEvent( QMouseEvent* e )
{
if ( d->m_clearButton == childAt( e->pos() ) ) {
QString newText;
if ( e->button() == Qt::MidButton ) {
if ( e->button() == Qt::MiddleButton ) {
newText = QApplication::clipboard()->text( QClipboard::Selection );
setText( newText );
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment