diff --git a/AdvancedDockingSystem/include/ads/MainContainerWidget.h b/AdvancedDockingSystem/include/ads/MainContainerWidget.h index 8f86ad1..ed18e6d 100644 --- a/AdvancedDockingSystem/include/ads/MainContainerWidget.h +++ b/AdvancedDockingSystem/include/ads/MainContainerWidget.h @@ -39,6 +39,7 @@ ADS_NAMESPACE_BEGIN class SectionWidget; class DropOverlay; class InternalContentData; +class CSectionContentWidget; @@ -175,6 +176,9 @@ private: QHash m_SectionContentNameMap; QHash m_SectionWidgetIdMap; + QHash m_SectionContentWidgetIdMap; + QHash m_SectionContentWidgetNameMap; + QPointer m_ContainerDropOverlay; QPointer m_SectionDropOverlay; }; diff --git a/AdvancedDockingSystem/src/SectionContentWidget.cpp b/AdvancedDockingSystem/src/SectionContentWidget.cpp index 4cb0b0e..6a411ad 100644 --- a/AdvancedDockingSystem/src/SectionContentWidget.cpp +++ b/AdvancedDockingSystem/src/SectionContentWidget.cpp @@ -97,8 +97,8 @@ CSectionContentWidget* CSectionContentWidget::newSectionContent(const QString& u sc->d->TitleWidgetContent = title; sc->d->ContentWidget = content; - //SectionContentIdMap.insert(sc->uid(), sc); - //SectionContentNameMap.insert(sc->uniqueName(), sc); + container->m_SectionContentWidgetIdMap.insert(sc->uid(), sc); + container->m_SectionContentWidgetNameMap.insert(sc->uniqueName(), sc); return sc; }