From 5d391535ac7277102351fe2490c8c25b02375664 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周一, 11 12月 2023 20:47:42 +0800
Subject: [PATCH] fix some mistakes

---
 src/widgets/widgetwindowagent.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/widgets/widgetwindowagent.cpp b/src/widgets/widgetwindowagent.cpp
index c85f14e..43528b5 100644
--- a/src/widgets/widgetwindowagent.cpp
+++ b/src/widgets/widgetwindowagent.cpp
@@ -22,7 +22,7 @@
                     QPainter painter(widget);
                     QRect rect = e->rect();
                     QRegion region = e->region();
-                    void *a[3] = {
+                    void *a[] = {
                         &painter,
                         &rect,
                         &region,
@@ -81,6 +81,11 @@
             needPaintBorder) {
             d->paintFilter = std::make_unique<WidgetPaintFilter>(w, d->context.get());
         }
+
+        if (d->context->key() == "win32") {
+            w->setContentsMargins(0, 1, 0, 0);
+        }
+
         return true;
     }
 

--
Gitblit v1.9.1