From 88b91b1fec752538beebca2fd92e62c8e03f32d4 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: 周二, 19 12月 2023 16:55:39 +0800 Subject: [PATCH] update win11 picture --- examples/mainwindow/mainwindow.cpp | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp index 96736de..c2e518c 100644 --- a/examples/mainwindow/mainwindow.cpp +++ b/examples/mainwindow/mainwindow.cpp @@ -107,10 +107,7 @@ void MainWindow::installWindowAgent() { // 1. Setup window agent - auto agent = new QWK::WidgetWindowAgent(this); - if (!agent->setup(this)) { - qFatal("QWK failed to initialize."); - } + QWK::WidgetWindowAgent *agent = QWK::setupWidgetWindow(this); // 2. Construct your title bar auto menuBar = []() { -- Gitblit v1.9.1