mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Minor: %prefix is not hardcoded anymore. Zoom in and out with Ctrl + and Ctrl -
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4574 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -612,6 +612,12 @@ switch(e -> key())
|
||||
case Qt::Key_ZoomIn:
|
||||
zoom(1.15);
|
||||
return;
|
||||
case Qt::Key_Minus:
|
||||
if (e->modifiers() & Qt::ControlModifier)
|
||||
zoom(0.85);
|
||||
case Qt::Key_Plus:
|
||||
if (e->modifiers() & Qt::ControlModifier)
|
||||
zoom(1.15);
|
||||
case Qt::Key_Up:
|
||||
if(!scene->selectedContent().elements.isEmpty()){
|
||||
scrollOnMovement(e);
|
||||
|
||||
Reference in New Issue
Block a user