mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
fix
This commit is contained in:
parent
c109ef836a
commit
38d8e6aa25
@ -586,7 +586,7 @@ CMainWindow::CMainWindow(QWidget *parent) :
|
||||
|
||||
d->createContent();
|
||||
// Default window geometry - center on screen
|
||||
resize(1280, 720);
|
||||
resize(1200, 1000);
|
||||
setGeometry(QStyle::alignedRect(
|
||||
Qt::LeftToRight, Qt::AlignCenter, frameSize(),
|
||||
QGuiApplication::primaryScreen()->availableGeometry()
|
||||
|
@ -324,7 +324,7 @@ public:
|
||||
{
|
||||
SplitterSizes[i] = AreaSize / TotRatio;
|
||||
}
|
||||
SplitterSizes.back() = AreaSize * AreaSize / TotRatio;
|
||||
SplitterSizes.back() = AreaSize * LastRatio / TotRatio;
|
||||
Splitter->setSizes(SplitterSizes);
|
||||
}
|
||||
|
||||
@ -1173,7 +1173,7 @@ CDockAreaWidget* DockContainerWidgetPrivate::dockWidgetIntoDockArea(DockWidgetAr
|
||||
insertWidgetIntoSplitter(NewSplitter, NewDockArea, InsertParam.append());
|
||||
TargetAreaSplitter->insertWidget(index, NewSplitter);
|
||||
TargetAreaSplitter->setSizes(TargetAreaSizes);
|
||||
onAdjustSplitterSizes(TargetAreaSplitter);
|
||||
onAdjustSplitterSizes(NewSplitter);
|
||||
}
|
||||
|
||||
appendDockAreas({NewDockArea});
|
||||
|
Loading…
Reference in New Issue
Block a user