diff --git a/src/DockManager.cpp b/src/DockManager.cpp index 1ac5a91..bb72777 100644 --- a/src/DockManager.cpp +++ b/src/DockManager.cpp @@ -440,6 +440,7 @@ CDockManager::~CDockManager() void CDockManager::registerFloatingWidget(CFloatingDockContainer* FloatingWidget) { d->FloatingWidgets.append(FloatingWidget); + emit floatingWidgetCreated(FloatingWidget); ADS_PRINT("d->FloatingWidgets.count() " << d->FloatingWidgets.count()); } diff --git a/src/DockManager.h b/src/DockManager.h index 4b97727..27b1caa 100644 --- a/src/DockManager.h +++ b/src/DockManager.h @@ -450,10 +450,17 @@ signals: /** * This signal is emitted if the dock manager finished opening a - * perspective + * perspective. */ void perspectiveOpened(const QString& PerspectiveName); + /** + * This signal is emitted, if a new floating widget has been created. + * An application can use this signal to e.g. subscribe to events of + * the newly created window. + */ + void floatingWidgetCreated(CFloatingDockContainer* FloatingWidget); + /** * This signal is emitted, if a new DockArea has been created. * An application can use this signal to set custom icons or custom