mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Fix previous workaround
The rotate action shortcut was 'space' before this commit and so the keyPressEvent with space key was never propagated because always grabbed by the rotate action. Now the shortcut for the rotate action is ctrl + space. Note that even if rotate exist in element editor, this doesn't work well because the rotation is not well managed by the save/load from elmt file.
This commit is contained in:
parent
89d03e5503
commit
4ab1ed7fc9
@ -87,7 +87,7 @@ bool ESEventAddTerminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
|
||||
@return
|
||||
*/
|
||||
bool ESEventAddTerminal::keyPressEvent(QKeyEvent *event) {
|
||||
if (event -> key() == Qt::Key_Alt) {
|
||||
if (event -> key() == Qt::Key_Space) {
|
||||
|
||||
switch (m_terminal->orientation()) {
|
||||
case Qet::North :
|
||||
|
@ -25,7 +25,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>800</width>
|
||||
<height>20</height>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="m_file_menu">
|
||||
@ -498,7 +498,7 @@
|
||||
<string>Rotation</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Space</string>
|
||||
<string>Ctrl+Space</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
|
Loading…
x
Reference in New Issue
Block a user