From 3d82aff4e7f1f1a0306689bff7177484811b6c02 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Wed, 12 Feb 2025 15:35:45 +0100 Subject: [PATCH] FIX: shortcut for rotation in element-editor was hardcoded in UI --- sources/editor/ui/qetelementeditor.cpp | 1 + sources/editor/ui/qetelementeditor.ui | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sources/editor/ui/qetelementeditor.cpp b/sources/editor/ui/qetelementeditor.cpp index 120e0a718..2e0f2b34a 100644 --- a/sources/editor/ui/qetelementeditor.cpp +++ b/sources/editor/ui/qetelementeditor.cpp @@ -996,6 +996,7 @@ void QETElementEditor::setupActions() addToolBar(Qt::TopToolBarArea, depth_toolbar); //Rotate action + ui->m_rotate_action -> setShortcut(Qt::Key_Space); connect(ui->m_rotate_action, &QAction::triggered, [this]() {this -> elementScene() -> undoStack().push(new RotateElementsCommand(this->elementScene()));}); //Zoom action diff --git a/sources/editor/ui/qetelementeditor.ui b/sources/editor/ui/qetelementeditor.ui index d6aa7b110..207543db2 100644 --- a/sources/editor/ui/qetelementeditor.ui +++ b/sources/editor/ui/qetelementeditor.ui @@ -492,9 +492,6 @@ Rotation - - Space -