From 8209cdfb1d85a40cc770f854d773c3a10f5ab576 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 20 12月 2023 17:32:57 +0800 Subject: [PATCH] Add hot-switch to agent --- examples/mainwindow/mainwindow.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp index 79724d4..e0df17e 100644 --- a/examples/mainwindow/mainwindow.cpp +++ b/examples/mainwindow/mainwindow.cpp @@ -107,7 +107,8 @@ void MainWindow::installWindowAgent() { // 1. Setup window agent - QWK::WidgetWindowAgent *agent = QWK::QWK_Initialize(this); + auto agent = new QWK::WidgetWindowAgent(this); + agent->setup(this); // 2. Construct your title bar auto menuBar = []() { -- Gitblit v1.9.1