mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Definitely fix the rotation problem :)
Only use space for every rotation
This commit is contained in:
@@ -87,7 +87,7 @@ bool ESEventAddTerminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
|
||||
@return
|
||||
*/
|
||||
bool ESEventAddTerminal::keyPressEvent(QKeyEvent *event) {
|
||||
if (event -> key() == Qt::Key_R) {
|
||||
if (event -> key() == Qt::Key_Space) {
|
||||
|
||||
switch (m_terminal->orientation()) {
|
||||
case Qet::North :
|
||||
|
||||
@@ -1000,7 +1000,6 @@ void QETElementEditor::setupActions()
|
||||
ui->m_paste_in_area_action -> setShortcut(tr("Ctrl+Shift+V"));
|
||||
ui->m_edit_names_action -> setShortcut(QKeySequence(tr("Ctrl+E")));
|
||||
ui->m_edit_author_action -> setShortcut(tr("Ctrl+Y"));
|
||||
ui->m_rotate_action -> setShortcut(QKeySequence(tr("SPACE")));
|
||||
|
||||
#ifndef Q_OS_MAC
|
||||
ui->m_delete_action -> setShortcut(QKeySequence(Qt::Key_Delete));
|
||||
@@ -1086,7 +1085,8 @@ void QETElementEditor::updateAction()
|
||||
select_list << ui->m_deselect_all_action
|
||||
<< ui->m_cut_action
|
||||
<< ui->m_copy_action
|
||||
<< ui->m_delete_action;
|
||||
<< ui->m_delete_action
|
||||
<< ui->m_rotate_action;
|
||||
auto items_selected = !m_read_only && m_elmt_scene->selectedItems().count();
|
||||
for (auto action : qAsConst(select_list)) {
|
||||
action->setEnabled(items_selected);
|
||||
|
||||
@@ -498,7 +498,7 @@
|
||||
<string>Rotation</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Space</string>
|
||||
<string>Space</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
|
||||
Reference in New Issue
Block a user