Display the name of the current hovered element of the element collection tree, in the status bar.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4773 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-11-10 19:49:33 +00:00
parent bb2fff7e5f
commit ce638c770d
4 changed files with 35 additions and 0 deletions

View File

@@ -609,6 +609,23 @@ QETDiagramEditor *QETApp::diagramEditorForFile(const QString &filepath) {
return(0);
}
/**
* @brief QETApp::diagramEditorAncestorOf
* @param child
* @return the parent QETDiagramEditor (or grandparent and so on to any level) of the given child.
* If not return nullptr;
*/
QETDiagramEditor *QETApp::diagramEditorAncestorOf (const QWidget *child)
{
foreach (QETDiagramEditor *qde, QETApp::diagramEditors()) {
if (qde->isAncestorOf(child)) {
return qde;
}
}
return nullptr;
}
#ifdef QET_ALLOW_OVERRIDE_CED_OPTION
/**
Redefinit le chemin du dossier des elements communs