mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Fix behavior when use arrow key with dynamic element text item and element text item group
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5789 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -703,22 +703,22 @@ void DiagramView::keyPressEvent(QKeyEvent *e)
|
||||
}
|
||||
break;
|
||||
case Qt::Key_Up: {
|
||||
if(!(dc.items(DiagramContent::All).isEmpty()))
|
||||
if(!dc.items(DiagramContent::All).isEmpty() && !dc.hasTextEditing())
|
||||
scrollOnMovement(e);
|
||||
}
|
||||
break;
|
||||
case Qt::Key_Down: {
|
||||
if(!(dc.items(DiagramContent::All).isEmpty()))
|
||||
if(!dc.items(DiagramContent::All).isEmpty() && !dc.hasTextEditing())
|
||||
scrollOnMovement(e);
|
||||
}
|
||||
break;
|
||||
case Qt::Key_Left: {
|
||||
if(!(dc.items(DiagramContent::All).isEmpty()))
|
||||
if(!dc.items(DiagramContent::All).isEmpty() && !dc.hasTextEditing())
|
||||
scrollOnMovement(e);
|
||||
}
|
||||
break;
|
||||
case Qt::Key_Right: {
|
||||
if(!(dc.items(DiagramContent::All).isEmpty()))
|
||||
if(!dc.items(DiagramContent::All).isEmpty() && !dc.hasTextEditing())
|
||||
scrollOnMovement(e);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user