From f110ad8ec7857e7a99dcbc1e60526f9a1cbd1c80 Mon Sep 17 00:00:00 2001 From: mfreiholz Date: Tue, 5 Apr 2016 15:00:05 +0200 Subject: [PATCH] fix: position (not yet tested) --- AdvancedDockingSystem/src/ContainerWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AdvancedDockingSystem/src/ContainerWidget.cpp b/AdvancedDockingSystem/src/ContainerWidget.cpp index f4af5c0..234dd02 100644 --- a/AdvancedDockingSystem/src/ContainerWidget.cpp +++ b/AdvancedDockingSystem/src/ContainerWidget.cpp @@ -853,8 +853,8 @@ bool ContainerWidget::saveSectionIndex(ADS_NS_SER::SectionIndexData& sid) const for (int i = 0; i < _sections.count(); ++i) { ADS_NS_SER::SectionEntity se; - se.x = _sections[i]->geometry().x(); - se.y = _sections[i]->geometry().y(); + se.x = _sections[i]->mapTo(const_cast(this), _sections[i]->pos()).x(); + se.y = _sections[i]->mapTo(const_cast(this), _sections[i]->pos()).y(); se.width = _sections[i]->geometry().width(); se.height = _sections[i]->geometry().height(); se.currentIndex = _sections[i]->currentIndex();