From 7d747f3bb139d2c01aee61b809d0929e8e908a2d Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周六, 23 12月 2023 17:41:00 +0800
Subject: [PATCH] update qmsetup

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

diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp
index 86420ac..8c224f3 100644
--- a/examples/mainwindow/mainwindow.cpp
+++ b/examples/mainwindow/mainwindow.cpp
@@ -153,8 +153,7 @@
         auto acrylicAction = new QAction(tr("Enable acrylic material"), menuBar);
         acrylicAction->setCheckable(true);
         connect(acrylicAction, &QAction::triggered, this, [this](bool checked) {
-            if (!windowAgent->setWindowAttribute(QStringLiteral("acrylic-material"),
-                                                 QColor::fromRgbF(1.f, 1.f, 1.f, 0.6f))) {
+            if (!windowAgent->setWindowAttribute(QStringLiteral("acrylic-material"), true)) {
                 return;
             }
             setProperty("custom-style", checked);

--
Gitblit v1.9.1