Added dockAreaCreated signal that is emitted whenever a new dock area is created - this allows an application to set custom icons and tooltips for the title bar buttons

This commit is contained in:
Uwe Kindler 2019-11-22 21:53:17 +01:00
parent 490e853435
commit b353c210ee
2 changed files with 11 additions and 0 deletions

View File

@ -354,6 +354,10 @@ CDockAreaWidget::CDockAreaWidget(CDockManager* DockManager, CDockContainerWidget
d->createTitleBar(); d->createTitleBar();
d->ContentsLayout = new DockAreaLayout(d->Layout); d->ContentsLayout = new DockAreaLayout(d->Layout);
if (d->DockManager)
{
emit d->DockManager->dockAreaCreated(this);
}
} }
//============================================================================ //============================================================================

View File

@ -391,6 +391,13 @@ signals:
* perspective * perspective
*/ */
void perspectiveOpened(const QString& PerspectiveName); void perspectiveOpened(const QString& PerspectiveName);
/**
* This signal is emitted, if a new DockArea has been created.
* An application can use this signal to set custom icons or custom
* tooltips for the DockArea buttons.
*/
void dockAreaCreated(CDockAreaWidget* DockArea);
}; // class DockManager }; // class DockManager
} // namespace ads } // namespace ads
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------