Started refactoring of SectionConetent into SectionContentWidget

This commit is contained in:
Uwe Kindler 2017-02-23 21:41:51 +01:00
parent ad49745b18
commit 5dc935f650
2 changed files with 6 additions and 2 deletions

View File

@ -39,6 +39,7 @@ ADS_NAMESPACE_BEGIN
class SectionWidget; class SectionWidget;
class DropOverlay; class DropOverlay;
class InternalContentData; class InternalContentData;
class CSectionContentWidget;
@ -175,6 +176,9 @@ private:
QHash<QString, SectionContent::WeakPtr> m_SectionContentNameMap; QHash<QString, SectionContent::WeakPtr> m_SectionContentNameMap;
QHash<int, SectionWidget*> m_SectionWidgetIdMap; QHash<int, SectionWidget*> m_SectionWidgetIdMap;
QHash<int, CSectionContentWidget*> m_SectionContentWidgetIdMap;
QHash<QString, CSectionContentWidget*> m_SectionContentWidgetNameMap;
QPointer<DropOverlay> m_ContainerDropOverlay; QPointer<DropOverlay> m_ContainerDropOverlay;
QPointer<DropOverlay> m_SectionDropOverlay; QPointer<DropOverlay> m_SectionDropOverlay;
}; };

View File

@ -97,8 +97,8 @@ CSectionContentWidget* CSectionContentWidget::newSectionContent(const QString& u
sc->d->TitleWidgetContent = title; sc->d->TitleWidgetContent = title;
sc->d->ContentWidget = content; sc->d->ContentWidget = content;
//SectionContentIdMap.insert(sc->uid(), sc); container->m_SectionContentWidgetIdMap.insert(sc->uid(), sc);
//SectionContentNameMap.insert(sc->uniqueName(), sc); container->m_SectionContentWidgetNameMap.insert(sc->uniqueName(), sc);
return sc; return sc;
} }