mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-10 08:40:00 +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:
@@ -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_Space) {
|
if (event -> key() == Qt::Key_R) {
|
||||||
|
|
||||||
switch (m_terminal->orientation()) {
|
switch (m_terminal->orientation()) {
|
||||||
case Qet::North :
|
case Qet::North :
|
||||||
|
|||||||
@@ -1000,7 +1000,7 @@ 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("Ctrl+R")));
|
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));
|
||||||
|
|||||||
Reference in New Issue
Block a user