mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-12 16:20:25 +08:00
Added dockWidgetAdded signal to CDockManager
This commit is contained in:
parent
fdedd7d92a
commit
f645fe725a
@ -706,6 +706,7 @@ CFloatingDockContainer* CDockManager::addDockWidgetFloating(CDockWidget* Dockwid
|
|||||||
{
|
{
|
||||||
d->UninitializedFloatingWidgets.append(FloatingWidget);
|
d->UninitializedFloatingWidgets.append(FloatingWidget);
|
||||||
}
|
}
|
||||||
|
emit dockWidgetAdded(Dockwidget);
|
||||||
return FloatingWidget;
|
return FloatingWidget;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -732,7 +733,9 @@ CDockAreaWidget* CDockManager::addDockWidget(DockWidgetArea area,
|
|||||||
CDockWidget* Dockwidget, CDockAreaWidget* DockAreaWidget)
|
CDockWidget* Dockwidget, CDockAreaWidget* DockAreaWidget)
|
||||||
{
|
{
|
||||||
d->DockWidgetsMap.insert(Dockwidget->objectName(), Dockwidget);
|
d->DockWidgetsMap.insert(Dockwidget->objectName(), Dockwidget);
|
||||||
return CDockContainerWidget::addDockWidget(area, Dockwidget, DockAreaWidget);
|
auto AreaOfAddedDockWidget = CDockContainerWidget::addDockWidget(area, Dockwidget, DockAreaWidget);
|
||||||
|
emit dockWidgetAdded(Dockwidget);
|
||||||
|
return AreaOfAddedDockWidget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -552,6 +552,12 @@ signals:
|
|||||||
*/
|
*/
|
||||||
void dockAreaCreated(ads::CDockAreaWidget* DockArea);
|
void dockAreaCreated(ads::CDockAreaWidget* DockArea);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This signal is emitted if a dock widget has been added to this
|
||||||
|
* dock manager instance.
|
||||||
|
*/
|
||||||
|
void dockWidgetAdded(ads::CDockWidget* DockWidget);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This signal is emitted just before the given dock widget is removed
|
* This signal is emitted just before the given dock widget is removed
|
||||||
* from the dock manager
|
* from the dock manager
|
||||||
|
Loading…
Reference in New Issue
Block a user