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

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

diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp
index b44de01..c3c133b 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,11 +107,11 @@
 
 void MainWindow::installWindowAgent() {
     // 1. Setup window agent
-    QWK::WidgetWindowAgent *agent = QWK::setupWidgetWindow(this);
-
+    
     // Equivalent to:
     // auto agent = new QWK::WidgetWindowAgent(w);
     // agent->setup(w);
+    QWK::WidgetWindowAgent *agent = QWK::setupWidgetWindow(this);
 
     // 2. Construct your title bar
     auto menuBar = []() {

--
Gitblit v1.9.1