From 7955f5b084aeae334a445136839160356c96de36 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 20 12月 2023 03:59:57 +0800 Subject: [PATCH] Add comments --- 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