diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index 03f4065..8723299 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -354,6 +354,10 @@ CDockAreaWidget::CDockAreaWidget(CDockManager* DockManager, CDockContainerWidget d->createTitleBar(); d->ContentsLayout = new DockAreaLayout(d->Layout); + if (d->DockManager) + { + emit d->DockManager->dockAreaCreated(this); + } } //============================================================================ diff --git a/src/DockManager.h b/src/DockManager.h index 2b20012..fd59278 100644 --- a/src/DockManager.h +++ b/src/DockManager.h @@ -391,6 +391,13 @@ signals: * perspective */ 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 } // namespace ads //-----------------------------------------------------------------------------