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

View File

@@ -81,6 +81,7 @@ signals:
protected:
void dropIntoContainer(FloatingWidget* FloatingWidget, DropArea area);
void dropIntoSection(FloatingWidget* FloatingWidget, SectionWidget* targetSection, DropArea area);
virtual bool event(QEvent *e) override;
SectionWidget* newSectionWidget();
void addSectionWidget(SectionWidget* section);

View File

@@ -50,14 +50,6 @@ public:
// Public API
//
/*!
* Adds the section-content <em>sc</em> to this container-widget into the section-widget <em>sw</em>.
* If <em>sw</em> is not NULL, the <em>area</em> is used to indicate how the content should be arranged.
* Returns a pointer to the SectionWidget of the added SectionContent. Do not use it for anything else than adding more
* SectionContent elements with this method.
*/
SectionWidget* addSectionContent(const SectionContent::RefPtr& sc, SectionWidget* sw = NULL, DropArea area = CenterDropArea);
/*!
* Completely removes the <em>sc</em> from this ContainerWidget.
* This container will no longer hold a reference to the content.