Fix previous workaround

Now the shortcut for the rotate action is key_space and use key_R to
rotate terminal on the fly before placing it in the drawing.
This commit is contained in:
Laurent Trinques 2022-05-25 17:39:49 +02:00
parent 6a669f1399
commit bf32219154
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -1000,7 +1000,7 @@ 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("Ctrl+R")));
ui->m_rotate_action -> setShortcut(QKeySequence(tr("SPACE")));
#ifndef Q_OS_MAC
ui->m_delete_action -> setShortcut(QKeySequence(Qt::Key_Delete));