This commit is contained in:
Davide Faconti 2020-06-13 17:22:25 +02:00
parent c109ef836a
commit 38d8e6aa25
2 changed files with 3 additions and 3 deletions

View File

@ -586,7 +586,7 @@ CMainWindow::CMainWindow(QWidget *parent) :
d->createContent(); d->createContent();
// Default window geometry - center on screen // Default window geometry - center on screen
resize(1280, 720); resize(1200, 1000);
setGeometry(QStyle::alignedRect( setGeometry(QStyle::alignedRect(
Qt::LeftToRight, Qt::AlignCenter, frameSize(), Qt::LeftToRight, Qt::AlignCenter, frameSize(),
QGuiApplication::primaryScreen()->availableGeometry() QGuiApplication::primaryScreen()->availableGeometry()

View File

@ -324,7 +324,7 @@ public:
{ {
SplitterSizes[i] = AreaSize / TotRatio; SplitterSizes[i] = AreaSize / TotRatio;
} }
SplitterSizes.back() = AreaSize * AreaSize / TotRatio; SplitterSizes.back() = AreaSize * LastRatio / TotRatio;
Splitter->setSizes(SplitterSizes); Splitter->setSizes(SplitterSizes);
} }
@ -1173,7 +1173,7 @@ CDockAreaWidget* DockContainerWidgetPrivate::dockWidgetIntoDockArea(DockWidgetAr
insertWidgetIntoSplitter(NewSplitter, NewDockArea, InsertParam.append()); insertWidgetIntoSplitter(NewSplitter, NewDockArea, InsertParam.append());
TargetAreaSplitter->insertWidget(index, NewSplitter); TargetAreaSplitter->insertWidget(index, NewSplitter);
TargetAreaSplitter->setSizes(TargetAreaSizes); TargetAreaSplitter->setSizes(TargetAreaSizes);
onAdjustSplitterSizes(TargetAreaSplitter); onAdjustSplitterSizes(NewSplitter);
} }
appendDockAreas({NewDockArea}); appendDockAreas({NewDockArea});