Definitely fix the rotation problem :)

Only use space for every rotation
This commit is contained in:
joshua
2022-05-25 21:47:31 +02:00
parent bf32219154
commit a2b73ea2bc
3 changed files with 4 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ bool ESEventAddTerminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
@return @return
*/ */
bool ESEventAddTerminal::keyPressEvent(QKeyEvent *event) { bool ESEventAddTerminal::keyPressEvent(QKeyEvent *event) {
if (event -> key() == Qt::Key_R) { if (event -> key() == Qt::Key_Space) {
switch (m_terminal->orientation()) { switch (m_terminal->orientation()) {
case Qet::North : case Qet::North :

View File

@@ -1000,7 +1000,6 @@ void QETElementEditor::setupActions()
ui->m_paste_in_area_action -> setShortcut(tr("Ctrl+Shift+V")); ui->m_paste_in_area_action -> setShortcut(tr("Ctrl+Shift+V"));
ui->m_edit_names_action -> setShortcut(QKeySequence(tr("Ctrl+E"))); ui->m_edit_names_action -> setShortcut(QKeySequence(tr("Ctrl+E")));
ui->m_edit_author_action -> setShortcut(tr("Ctrl+Y")); ui->m_edit_author_action -> setShortcut(tr("Ctrl+Y"));
ui->m_rotate_action -> setShortcut(QKeySequence(tr("SPACE")));
#ifndef Q_OS_MAC #ifndef Q_OS_MAC
ui->m_delete_action -> setShortcut(QKeySequence(Qt::Key_Delete)); ui->m_delete_action -> setShortcut(QKeySequence(Qt::Key_Delete));
@@ -1086,7 +1085,8 @@ void QETElementEditor::updateAction()
select_list << ui->m_deselect_all_action select_list << ui->m_deselect_all_action
<< ui->m_cut_action << ui->m_cut_action
<< ui->m_copy_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(); auto items_selected = !m_read_only && m_elmt_scene->selectedItems().count();
for (auto action : qAsConst(select_list)) { for (auto action : qAsConst(select_list)) {
action->setEnabled(items_selected); action->setEnabled(items_selected);

View File

@@ -498,7 +498,7 @@
<string>Rotation</string> <string>Rotation</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+Space</string> <string>Space</string>
</property> </property>
</action> </action>
</widget> </widget>