mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Element editor : Workaround for Qt::Key_Space event not working
Use of ALT key as a replacement to rotate terminal on the fly before placing it in the drawing. Fix bug #262 https://qelectrotech.org/bugtracker/view.php?id=262
This commit is contained in:
@@ -87,7 +87,8 @@ bool ESEventAddTerminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
|
||||
@return
|
||||
*/
|
||||
bool ESEventAddTerminal::keyPressEvent(QKeyEvent *event) {
|
||||
if (event -> key() == Qt::Key_Space) {
|
||||
if (event -> key() == Qt::Key_Alt) {
|
||||
|
||||
switch (m_terminal->orientation()) {
|
||||
case Qet::North :
|
||||
m_terminal -> setOrientation(Qet::East);
|
||||
|
||||
Reference in New Issue
Block a user