mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
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:
parent
6a669f1399
commit
bf32219154
@ -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 :
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user