From 0ace6da8a36220381dc08e3ec5d6580e1c5549ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 13 Nov 2020 23:43:52 +0100 Subject: [PATCH] Fixed Qt4 build --- src/GUI/mapview.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GUI/mapview.cpp b/src/GUI/mapview.cpp index 09b99e36..574c1a57 100644 --- a/src/GUI/mapview.cpp +++ b/src/GUI/mapview.cpp @@ -538,7 +538,8 @@ void MapView::keyPressEvent(QKeyEvent *event) void MapView::keyReleaseEvent(QKeyEvent *event) { - if (event->key() == MODIFIER_KEY && viewport()->cursor() == Qt::CrossCursor) + if (event->key() == MODIFIER_KEY + && viewport()->cursor().shape() == Qt::CrossCursor) viewport()->setCursor(_cursor); QGraphicsView::keyReleaseEvent(event); @@ -547,7 +548,7 @@ void MapView::keyReleaseEvent(QKeyEvent *event) void MapView::mousePressEvent(QMouseEvent *event) { if (event->button() == Qt::LeftButton && event->modifiers() & MODIFIER) - QGuiApplication::clipboard()->setText(Format::coordinates( + QApplication::clipboard()->setText(Format::coordinates( _map->xy2ll(mapToScene(event->pos())), _coordinates->format())); else QGraphicsView::mousePressEvent(event);