mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
FIX: shortcut for rotation in element-editor was hardcoded in UI
This commit is contained in:
@@ -996,6 +996,7 @@ void QETElementEditor::setupActions()
|
|||||||
addToolBar(Qt::TopToolBarArea, depth_toolbar);
|
addToolBar(Qt::TopToolBarArea, depth_toolbar);
|
||||||
|
|
||||||
//Rotate action
|
//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()));});
|
connect(ui->m_rotate_action, &QAction::triggered, [this]() {this -> elementScene() -> undoStack().push(new RotateElementsCommand(this->elementScene()));});
|
||||||
|
|
||||||
//Zoom action
|
//Zoom action
|
||||||
|
|||||||
@@ -492,9 +492,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Rotation</string>
|
<string>Rotation</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="shortcut">
|
|
||||||
<string>Space</string>
|
|
||||||
</property>
|
|
||||||
</action>
|
</action>
|
||||||
<action name="m_import_dxf">
|
<action name="m_import_dxf">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
|
|||||||
Reference in New Issue
Block a user