mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-12 16:20:25 +08:00
Started refactoring of SectionConetent into SectionContentWidget
This commit is contained in:
parent
ad49745b18
commit
5dc935f650
@ -39,6 +39,7 @@ ADS_NAMESPACE_BEGIN
|
||||
class SectionWidget;
|
||||
class DropOverlay;
|
||||
class InternalContentData;
|
||||
class CSectionContentWidget;
|
||||
|
||||
|
||||
|
||||
@ -175,6 +176,9 @@ private:
|
||||
QHash<QString, SectionContent::WeakPtr> m_SectionContentNameMap;
|
||||
QHash<int, SectionWidget*> m_SectionWidgetIdMap;
|
||||
|
||||
QHash<int, CSectionContentWidget*> m_SectionContentWidgetIdMap;
|
||||
QHash<QString, CSectionContentWidget*> m_SectionContentWidgetNameMap;
|
||||
|
||||
QPointer<DropOverlay> m_ContainerDropOverlay;
|
||||
QPointer<DropOverlay> m_SectionDropOverlay;
|
||||
};
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user