mirror of
https://github.com/leozide/leocad
synced 2025-01-29 20:34:50 +01:00
Fixed inverted zoom shortcuts.
This commit is contained in:
parent
eae840d891
commit
c0759c226d
1 changed files with 3 additions and 2 deletions
|
@ -77,6 +77,7 @@ void lcMainWindow::CreateWidgets()
|
|||
|
||||
QWidget* ViewWidget = new lcQGLWidget(CentralFrame, mPiecePreviewWidget, new View(NULL), true);
|
||||
CentralLayout->addWidget(ViewWidget, 0, 0, 1, 1);
|
||||
ViewWidget->setFocus();
|
||||
|
||||
connect(QApplication::clipboard(), SIGNAL(dataChanged()), this, SLOT(ClipboardChanged()));
|
||||
ClipboardChanged();
|
||||
|
@ -2020,11 +2021,11 @@ void lcMainWindow::HandleCommand(lcCommandId CommandId)
|
|||
break;
|
||||
|
||||
case LC_VIEW_ZOOM_IN:
|
||||
lcGetActiveModel()->Zoom(mActiveView->mCamera, -10.0f);
|
||||
lcGetActiveModel()->Zoom(mActiveView->mCamera, 10.0f);
|
||||
break;
|
||||
|
||||
case LC_VIEW_ZOOM_OUT:
|
||||
lcGetActiveModel()->Zoom(mActiveView->mCamera, 10.0f);
|
||||
lcGetActiveModel()->Zoom(mActiveView->mCamera, -10.0f);
|
||||
break;
|
||||
|
||||
case LC_VIEW_ZOOM_EXTENTS:
|
||||
|
|
Loading…
Add table
Reference in a new issue