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) ...@@ -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; d->m_midPressed = false;
} }
...@@ -478,7 +478,7 @@ void MarbleDefaultInputHandler::handleMouseButtonPress(QMouseEvent *event) ...@@ -478,7 +478,7 @@ void MarbleDefaultInputHandler::handleMouseButtonPress(QMouseEvent *event)
handleLeftMouseButtonPress(event); handleLeftMouseButtonPress(event);
} }
if ( event->button() == Qt::MidButton ) if ( event->button() == Qt::MiddleButton )
{ {
handleMiddleMouseButtonPress(event); handleMiddleMouseButtonPress(event);
} }
...@@ -582,7 +582,7 @@ void MarbleDefaultInputHandler::handleMouseButtonRelease(QMouseEvent *event) ...@@ -582,7 +582,7 @@ void MarbleDefaultInputHandler::handleMouseButtonRelease(QMouseEvent *event)
} }
} }
if (event->button() == Qt::MidButton) if (event->button() == Qt::MiddleButton)
{ {
d->m_midPressed = false; d->m_midPressed = false;
......
...@@ -182,7 +182,7 @@ void MarbleLineEdit::mouseReleaseEvent( QMouseEvent* e ) ...@@ -182,7 +182,7 @@ void MarbleLineEdit::mouseReleaseEvent( QMouseEvent* e )
{ {
if ( d->m_clearButton == childAt( e->pos() ) ) { if ( d->m_clearButton == childAt( e->pos() ) ) {
QString newText; QString newText;
if ( e->button() == Qt::MidButton ) { if ( e->button() == Qt::MiddleButton ) {
newText = QApplication::clipboard()->text( QClipboard::Selection ); newText = QApplication::clipboard()->text( QClipboard::Selection );
setText( newText ); setText( newText );
} else { } 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