From 671f88f9a7f5735e1c2bd512a13314d8ae5f929b Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周二, 19 12月 2023 18:31:54 +0800
Subject: [PATCH] minor tweaks

---
 examples/mainwindow/mainwindow.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp
index 79724d4..b44de01 100644
--- a/examples/mainwindow/mainwindow.cpp
+++ b/examples/mainwindow/mainwindow.cpp
@@ -42,7 +42,6 @@
     }
 
     setWindowTitle(tr("Example MainWindow"));
-    resize(800, 600);
 }
 
 static inline void emulateLeaveEvent(QWidget *widget) {
@@ -107,7 +106,11 @@
 
 void MainWindow::installWindowAgent() {
     // 1. Setup window agent
-    QWK::WidgetWindowAgent *agent = QWK::QWK_Initialize(this);
+    QWK::WidgetWindowAgent *agent = QWK::setupWidgetWindow(this);
+
+    // Equivalent to:
+    // auto agent = new QWK::WidgetWindowAgent(w);
+    // agent->setup(w);
 
     // 2. Construct your title bar
     auto menuBar = []() {

--
Gitblit v1.9.1