mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed Qt4 build
This commit is contained in:
parent
cfcaa72cd2
commit
0ace6da8a3
@ -538,7 +538,8 @@ void MapView::keyPressEvent(QKeyEvent *event)
|
|||||||
|
|
||||||
void MapView::keyReleaseEvent(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);
|
viewport()->setCursor(_cursor);
|
||||||
|
|
||||||
QGraphicsView::keyReleaseEvent(event);
|
QGraphicsView::keyReleaseEvent(event);
|
||||||
@ -547,7 +548,7 @@ void MapView::keyReleaseEvent(QKeyEvent *event)
|
|||||||
void MapView::mousePressEvent(QMouseEvent *event)
|
void MapView::mousePressEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
if (event->button() == Qt::LeftButton && event->modifiers() & MODIFIER)
|
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()));
|
_map->xy2ll(mapToScene(event->pos())), _coordinates->format()));
|
||||||
else
|
else
|
||||||
QGraphicsView::mousePressEvent(event);
|
QGraphicsView::mousePressEvent(event);
|
||||||
|
Loading…
Reference in New Issue
Block a user