From fb776030fc1673bc22d8e9f8972ee9009438d6a3 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 20 12月 2023 00:10:50 +0800 Subject: [PATCH] Remove redundant API anyway --- examples/mainwindow/mainwindow.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp index 8b32fe7..e0df17e 100644 --- a/examples/mainwindow/mainwindow.cpp +++ b/examples/mainwindow/mainwindow.cpp @@ -42,6 +42,7 @@ } setWindowTitle(tr("Example MainWindow")); + resize(800, 600); } static inline void emulateLeaveEvent(QWidget *widget) { @@ -106,7 +107,8 @@ void MainWindow::installWindowAgent() { // 1. Setup window agent - QWK::WidgetWindowAgent *agent = QWK::setupWidgetWindow(this); + auto agent = new QWK::WidgetWindowAgent(this); + agent->setup(this); // 2. Construct your title bar auto menuBar = []() { -- Gitblit v1.9.1