From 9e96ea43436d5ed200c57d6b229cddf9bdf9e55a Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 周一, 10 2月 2025 18:06:41 +0800
Subject: [PATCH] make demo a GUI application in CMake

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

diff --git a/examples/qml/QWKButton.qml b/examples/qml/QWKButton.qml
index 91569f7..8bf58a2 100644
--- a/examples/qml/QWKButton.qml
+++ b/examples/qml/QWKButton.qml
@@ -1,5 +1,5 @@
 import QtQuick 2.15
-import QtQuick.Controls 2.15
+import QtQuick.Controls.Basic 2.15
 
 Button {
     id: root
@@ -20,6 +20,7 @@
             mipmap: true
             width: 12
             height: 12
+            fillMode: Image.PreserveAspectFit
         }
     }
     background: Rectangle {

--
Gitblit v1.9.1