From 5ee113e2c4f916b1078ace782bb130f5edf64bcf Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 摹曛, 14 12月 2023 20:28:02 +0800
Subject: [PATCH] minor tweaks

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

diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp
index 47c7791..da44b23 100644
--- a/examples/mainwindow/mainwindow.cpp
+++ b/examples/mainwindow/mainwindow.cpp
@@ -176,7 +176,7 @@
         QTimer::singleShot(75, [iconButton, agent]() {
             if (iconButton->property("double-click-close").toBool())
                 return;
-            agent->showSystemMenu(iconButton->mapToGlobal({0, iconButton->height()}));
+            agent->showSystemMenu(iconButton->mapToGlobal(QPoint{0, iconButton->height()}));
         });
     });
     connect(iconButton, &QWK::WindowButton::doubleClicked, this, [iconButton, this]() {

--
Gitblit v1.9.1