mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
fix: position (not yet tested)
This commit is contained in:
parent
d8dc37b788
commit
f110ad8ec7
@ -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<ContainerWidget*>(this), _sections[i]->pos()).x();
|
||||
se.y = _sections[i]->mapTo(const_cast<ContainerWidget*>(this), _sections[i]->pos()).y();
|
||||
se.width = _sections[i]->geometry().width();
|
||||
se.height = _sections[i]->geometry().height();
|
||||
se.currentIndex = _sections[i]->currentIndex();
|
||||
|
Loading…
Reference in New Issue
Block a user