1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Fixed Qt4 build

This commit is contained in:
Martin Tůma 2020-11-13 23:43:52 +01:00
parent cfcaa72cd2
commit 0ace6da8a3

View File

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