mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 02:10:52 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user