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 |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp
index c3c133b..e0df17e 100644
--- a/examples/mainwindow/mainwindow.cpp
+++ b/examples/mainwindow/mainwindow.cpp
@@ -107,11 +107,8 @@
 
 void MainWindow::installWindowAgent() {
     // 1. Setup window agent
-    
-    // Equivalent to:
-    // auto agent = new QWK::WidgetWindowAgent(w);
-    // agent->setup(w);
-    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