From 5e1c012c539e74804454d45a1b945093afdb8f4f Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周日, 09 2月 2025 11:15:59 +0800
Subject: [PATCH] apply some fixes and workarounds

---
 examples/qml/QWKButton.qml |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/examples/qml/QWKButton.qml b/examples/qml/QWKButton.qml
index 9068242..8bf58a2 100644
--- a/examples/qml/QWKButton.qml
+++ b/examples/qml/QWKButton.qml
@@ -1,23 +1,29 @@
 import QtQuick 2.15
-import QtQuick.Controls 2.15
+import QtQuick.Controls.Basic 2.15
 
 Button {
     id: root
     width: height * 1.5
+    leftPadding: 0
+    topPadding: 0
+    rightPadding: 0
+    bottomPadding: 0
+    leftInset: 0
+    topInset: 0
+    rightInset: 0
+    bottomInset: 0
     property alias source: image.source
     contentItem: Item {
-        anchors.fill: parent
-
         Image {
             id: image
             anchors.centerIn: parent
             mipmap: true
-            width: 10
-            height: 10
+            width: 12
+            height: 12
+            fillMode: Image.PreserveAspectFit
         }
     }
     background: Rectangle {
-        anchors.fill: parent
         color: {
             if (!root.enabled) {
                 return "gray";

--
Gitblit v1.9.1