Implemented initial support for dropping multiple sections at the same time

This commit is contained in:
Uwe Kindler
2017-02-14 23:55:38 +01:00
parent 268c49af3b
commit 72fc9cd79a
7 changed files with 163 additions and 63 deletions
@@ -67,20 +67,6 @@ MainContainerWidget::~MainContainerWidget()
}
SectionWidget* MainContainerWidget::addSectionContent(const SectionContent::RefPtr& sc, SectionWidget* sw, DropArea area)
{
ADS_Expects(!sc.isNull());
// Drop it based on "area"
InternalContentData data;
data.content = sc;
data.titleWidget = new SectionTitleWidget(sc, NULL);
data.contentWidget = new SectionContentWidget(sc, NULL);
connect(data.titleWidget, SIGNAL(activeTabChanged()), this, SLOT(onActiveTabChanged()));
return dropContent(data, sw, area, false);
}
bool MainContainerWidget::removeSectionContent(const SectionContent::RefPtr& sc)
{
ADS_Expects(!sc.isNull());