mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +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:
@@ -355,6 +355,21 @@ bool DiagramContent::potentialIsManaged(QList<Conductor *> conductors)
|
||||
return b;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DiagramContent::hasTextEditing
|
||||
* @return true if handle a text currently in editing intercation
|
||||
*/
|
||||
bool DiagramContent::hasTextEditing()
|
||||
{
|
||||
for (DiagramTextItem *dti : selectedTexts()) {
|
||||
if (dti->textInteractionFlags() == Qt::TextEditorInteraction) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DiagramContent::items
|
||||
* @param filter
|
||||
|
||||
Reference in New Issue
Block a user