From 5dc935f650ed6953b417d1eef775380652150055 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Thu, 23 Feb 2017 21:41:51 +0100 Subject: [PATCH] Started refactoring of SectionConetent into SectionContentWidget --- AdvancedDockingSystem/include/ads/MainContainerWidget.h | 4 ++++ AdvancedDockingSystem/src/SectionContentWidget.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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; }