Fixed an issue that caused wrong inserten order of dock widget when dropping a floating widget to the left or top container drop area

This commit is contained in:
Uwe Kindler 2020-05-17 12:21:52 +02:00
parent cdb8926673
commit eee9ebb41d

View File

@ -415,9 +415,10 @@ void DockContainerWidgetPrivate::dropIntoContainer(CFloatingDockContainer* Float
} }
else if (FloatingSplitter->orientation() == InsertParam.orientation()) else if (FloatingSplitter->orientation() == InsertParam.orientation())
{ {
int InsertIndex = InsertParam.append() ? Splitter->count() : 0;
while (FloatingSplitter->count()) while (FloatingSplitter->count())
{ {
insertWidgetIntoSplitter(Splitter, FloatingSplitter->widget(0), InsertParam.append()); Splitter->insertWidget(InsertIndex++, FloatingSplitter->widget(0));
} }
} }
else else