Continued implementation

This commit is contained in:
Uwe Kindler 2020-06-04 20:40:23 +02:00
parent a3e979a8ad
commit 45390506dd
3 changed files with 30 additions and 3 deletions

View File

@ -1466,7 +1466,7 @@ void CDockContainerWidget::dropFloatingWidget(CFloatingDockContainer* FloatingWi
std::cout << "SingleDockWidget dropped" << std::endl; std::cout << "SingleDockWidget dropped" << std::endl;
d->DockManager->emitWidgetDroppedSignals(SingleDroppedDockWidget); d->DockManager->emitWidgetDroppedSignals(SingleDroppedDockWidget);
} }
d->DockManager->endFloatingWidgetDrop(FloatingWidget); d->DockManager->notifyFloatingWidgetDrop(FloatingWidget);
} }

View File

@ -1101,7 +1101,7 @@ void CDockManager::emitWidgetDroppedSignals(QWidget* DroppedWidget)
//=========================================================================== //===========================================================================
void CDockManager::endFloatingWidgetDrop(CFloatingDockContainer* FloatingWidget) void CDockManager::notifyFloatingWidgetDrop(CFloatingDockContainer* FloatingWidget)
{ {
if (!FloatingWidget) if (!FloatingWidget)
{ {
@ -1122,6 +1122,21 @@ void CDockManager::endFloatingWidgetDrop(CFloatingDockContainer* FloatingWidget)
} }
//===========================================================================
void CDockManager::notifyDockWidgetRelocation(CDockWidget* DockWidget, CDockContainerWidget* ContainerOld)
{
}
//===========================================================================
void CDockManager::notifyDockAreaRelocation(CDockAreaWidget* DockArea, CDockContainerWidget* ContainerOld)
{
}
} // namespace ads } // namespace ads
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------

View File

@ -134,7 +134,19 @@ protected:
* When this function is called, all dock widgets of the FloatingWidget * When this function is called, all dock widgets of the FloatingWidget
* are already inserted into its new position * are already inserted into its new position
*/ */
void endFloatingWidgetDrop(CFloatingDockContainer* FloatingWidget); void notifyFloatingWidgetDrop(CFloatingDockContainer* FloatingWidget);
/**
* This function is called, if the given DockWidget has been relocated from
* the old container ContainerOld to the new container DockWidget->dockContainer()
*/
void notifyDockWidgetRelocation(CDockWidget* DockWidget, CDockContainerWidget* ContainerOld);
/**
* This function is called, if the given DockAreahas been relocated from
* the old container ContainerOld to the new container DockArea->dockContainer()
*/
void notifyDockAreaRelocation(CDockAreaWidget* DockArea, CDockContainerWidget* ContainerOld);
/** /**
* Show the floating widgets that has been created floating * Show the floating widgets that has been created floating