mirror of
https://github.com/leozide/leocad
synced 2025-02-06 08:46:06 +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);
|
QWidget* ViewWidget = new lcQGLWidget(CentralFrame, mPiecePreviewWidget, new View(NULL), true);
|
||||||
CentralLayout->addWidget(ViewWidget, 0, 0, 1, 1);
|
CentralLayout->addWidget(ViewWidget, 0, 0, 1, 1);
|
||||||
|
ViewWidget->setFocus();
|
||||||
|
|
||||||
connect(QApplication::clipboard(), SIGNAL(dataChanged()), this, SLOT(ClipboardChanged()));
|
connect(QApplication::clipboard(), SIGNAL(dataChanged()), this, SLOT(ClipboardChanged()));
|
||||||
ClipboardChanged();
|
ClipboardChanged();
|
||||||
|
@ -2020,11 +2021,11 @@ void lcMainWindow::HandleCommand(lcCommandId CommandId)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LC_VIEW_ZOOM_IN:
|
case LC_VIEW_ZOOM_IN:
|
||||||
lcGetActiveModel()->Zoom(mActiveView->mCamera, -10.0f);
|
lcGetActiveModel()->Zoom(mActiveView->mCamera, 10.0f);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LC_VIEW_ZOOM_OUT:
|
case LC_VIEW_ZOOM_OUT:
|
||||||
lcGetActiveModel()->Zoom(mActiveView->mCamera, 10.0f);
|
lcGetActiveModel()->Zoom(mActiveView->mCamera, -10.0f);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LC_VIEW_ZOOM_EXTENTS:
|
case LC_VIEW_ZOOM_EXTENTS:
|
||||||
|
|
Loading…
Add table
Reference in a new issue