mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-27 21:24:47 +01:00
Improved digital zoom/fullscreen interaction
This commit is contained in:
parent
ce1c76a315
commit
322792ea04
@ -1318,6 +1318,7 @@ void GUI::keyPressEvent(QKeyEvent *event)
|
|||||||
if (_fullscreenAction->isChecked()) {
|
if (_fullscreenAction->isChecked()) {
|
||||||
_fullscreenAction->setChecked(false);
|
_fullscreenAction->setChecked(false);
|
||||||
showFullscreen(false);
|
showFullscreen(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1326,6 +1327,7 @@ void GUI::keyPressEvent(QKeyEvent *event)
|
|||||||
if (!(event->modifiers() & MODIFIER))
|
if (!(event->modifiers() & MODIFIER))
|
||||||
closeFiles();
|
closeFiles();
|
||||||
openFile(file);
|
openFile(file);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QMainWindow::keyPressEvent(event);
|
QMainWindow::keyPressEvent(event);
|
||||||
|
@ -457,10 +457,10 @@ void PathView::keyPressEvent(QKeyEvent *event)
|
|||||||
z = 1;
|
z = 1;
|
||||||
else if (event->matches(ZOOM_OUT))
|
else if (event->matches(ZOOM_OUT))
|
||||||
z = -1;
|
z = -1;
|
||||||
else {
|
else if (_digitalZoom && event->key() == Qt::Key_Escape) {
|
||||||
if (_digitalZoom && event->key() == Qt::Key_Escape )
|
resetDigitalZoom();
|
||||||
resetDigitalZoom();
|
return;
|
||||||
|
} else {
|
||||||
QGraphicsView::keyPressEvent(event);
|
QGraphicsView::keyPressEvent(event);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user