refactor/pure-qt-ui #3

Merged
gaozheng merged 56 commits from refactor/pure-qt-ui into main 2026-06-10 18:41:53 +08:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit af0012fd70 - Show all commits

View File

@ -1026,7 +1026,10 @@ int main(int argc, char* argv[])
ela->setIsNavigationBarEnable(false); // 纯中心内容,不显示左侧导航栏 ela->setIsNavigationBarEnable(false); // 纯中心内容,不显示左侧导航栏
auto* inner = new QMainWindow(ela); // 以 ela 为父,避免无父期调色板/DPI 抖动(review H3) auto* inner = new QMainWindow(ela); // 以 ela 为父,避免无父期调色板/DPI 抖动(review H3)
buildWorkbench(*inner, repo, projectRepo, nav); buildWorkbench(*inner, repo, projectRepo, nav);
ela->setCentralCustomWidget(inner); // 工作台作为 ElaWindow 中心内容 // 用 addPageNode 把工作台作为唯一页面放进中心页栈(填满到底边)。
// 注意:不能用 setCentralCustomWidget——它把控件插到页栈容器“之上”空页栈仍占底部
// 导致状态栏不贴底边(见 ElaCentralStackedWidget::setCustomWidget 的 insertWidget(0,...))。
ela->addPageNode(kTitle, inner);
topLevel = ela; topLevel = ela;
} else { } else {
auto* window = new QMainWindow; auto* window = new QMainWindow;