mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
fix
This commit is contained in:
parent
c109ef836a
commit
38d8e6aa25
@ -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()
|
||||||
|
@ -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});
|
||||||
|
Loading…
Reference in New Issue
Block a user