Fix the side tab widget not updating style when its restored from XML

This commit is contained in:
Syarif Fakhri 2022-09-08 14:04:18 +08:00
parent be4e5a88a6
commit 37edf47c4b

View File

@ -1095,9 +1095,10 @@ bool DockContainerWidgetPrivate::restoreOverlayDockArea(CDockingStateReader& s,
DockWidget->setProperty(internal::ClosedProperty, true);
DockWidget->setProperty(internal::DirtyProperty, false);
_this->sideTabBar(area)->insertSideTab(0, DockWidget->sideTabWidget());
DockWidget->sideTabWidget()->show();
DockWidget->toggleView(false);
DockArea->overlayDockContainer()->addDockWidget(DockWidget);
DockWidget->sideTabWidget()->show();
DockWidget->sideTabWidget()->updateStyle(); // Needed as the side tab widget get it's left/right property from the overlay dock container which was just added
}
if (Testing)