From 7e335ee818e9cdbbc0301c0516d8f1e48ebd8ea0 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Tue, 23 Sep 2025 05:21:26 +0000 Subject: [PATCH] sync: from linuxdeepin/dtkdeclarative Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: https://github.com/linuxdeepin/dtkdeclarative/pull/531 --- examples/exhibition/main.qml | 1 - examples/qml-inspect/Example_1.qml | 2 +- examples/qml-inspect/Example_2.qml | 2 +- examples/qml-inspect/Example_colorselector.qml | 2 +- examples/qml-inspect/Example_settingsdialog.qml | 3 +-- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/exhibition/main.qml b/examples/exhibition/main.qml index 6a1196b1..cb3fcab2 100644 --- a/examples/exhibition/main.qml +++ b/examples/exhibition/main.qml @@ -98,7 +98,6 @@ ApplicationWindow { model: examplesFiles delegate: ItemDelegate { text: modelData.substring(0, modelData.indexOf(".qml")) - backgroundVisible: false onClicked: navigation.currentIndex = index checked: navigation.currentIndex === index } diff --git a/examples/qml-inspect/Example_1.qml b/examples/qml-inspect/Example_1.qml index 6f871e9d..12bffc14 100644 --- a/examples/qml-inspect/Example_1.qml +++ b/examples/qml-inspect/Example_1.qml @@ -5,7 +5,7 @@ import QtQuick 2.11 import org.deepin.dtk 1.0 -Rectangle { +Item { MouseArea { anchors.fill: parent acceptedButtons: Qt.LeftButton | Qt.RightButton diff --git a/examples/qml-inspect/Example_2.qml b/examples/qml-inspect/Example_2.qml index f7aa55ca..d45c477e 100644 --- a/examples/qml-inspect/Example_2.qml +++ b/examples/qml-inspect/Example_2.qml @@ -7,7 +7,7 @@ import QtQuick.Window 2.11 import QtQuick.Layouts 1.11 import org.deepin.dtk 1.0 -Rectangle { +Item { property string iconStr: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEkAAABFCAYAAAAGscunAAAAAXNSR0IArs4c6QAAATNJREFUeF7t3DEOgkAYBeG3J2NvxnIy2JNhKEwUDYyWMJZmLPh8tH+Jn1OBcloYRCQwApH+Rlozgt9eMymZ9g/2uaQ145Ch1dRrIhw81ZIlPX1KSXvNviKNGVt7724BNmVKSxPp6N8WCbwLIokEBEDikkQCAiBxSSIBAZC4JJGAAEhckkhAACQuSSQgABKXJBIQAIlLEgkIgMQliQQEQOKSRAICIHFJIgEBkLgkkYAASFySSEAAJC5JJCAAEpckEhAAiUsSCQiAxCWJBARA4pJEAgIgcUkiAQGQuCSRgABIXJJIQAAkLkkkIAASlyQSEACJSxIJCIDEJYkEBEDikkQCAiBxSSIBAZD8tKSaessLEz09c2ZwPGETX294XuK5tN0Jju1rr96A11AkkYAASFwSQHoAZNuhVXVGph0AAAAASUVORK5CYII=" RowLayout { diff --git a/examples/qml-inspect/Example_colorselector.qml b/examples/qml-inspect/Example_colorselector.qml index 3a76f0ab..51b31d61 100644 --- a/examples/qml-inspect/Example_colorselector.qml +++ b/examples/qml-inspect/Example_colorselector.qml @@ -5,7 +5,7 @@ import QtQuick 2.11 import org.deepin.dtk 1.0 -Rectangle { +Item { Label { id: changePaletteLabel anchors.left: parent.left diff --git a/examples/qml-inspect/Example_settingsdialog.qml b/examples/qml-inspect/Example_settingsdialog.qml index 54364d94..e344497a 100644 --- a/examples/qml-inspect/Example_settingsdialog.qml +++ b/examples/qml-inspect/Example_settingsdialog.qml @@ -6,8 +6,7 @@ import QtQuick 2.0 import org.deepin.dtk 1.0 import org.deepin.dtk.settings 1.0 as Settings -Rectangle { - border.color: "blue" +Item { property list __groups: [ Settings.SettingsGroup {