From b7acae1470497bbd3027eb5959ee6cebdf689b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Mon, 7 Aug 2023 22:11:08 +0800 Subject: [PATCH] update --- example/qml/component/CodeExpander.qml | 3 ++- example/qml/page/T_Tour.qml | 12 ++++++++++++ example/qml/window/MainWindow.qml | 8 ++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/example/qml/component/CodeExpander.qml b/example/qml/component/CodeExpander.qml index 72e309bb..5073d9a6 100644 --- a/example/qml/component/CodeExpander.qml +++ b/example/qml/component/CodeExpander.qml @@ -132,7 +132,8 @@ FluExpander{ "FluImage", "FluSpinBox", "FluHttp", - "FluWatermark" + "FluWatermark", + "FluTour" ]; code = code.replace(/\n/g, "
"); code = code.replace(/ /g, " "); diff --git a/example/qml/page/T_Tour.qml b/example/qml/page/T_Tour.qml index 2003016a..65ad8aa1 100644 --- a/example/qml/page/T_Tour.qml +++ b/example/qml/page/T_Tour.qml @@ -64,5 +64,17 @@ FluScrollablePage{ } } } + CodeExpander{ + Layout.fillWidth: true + Layout.topMargin: -1 + code:'FluTour{ + id:tour + steps:[ + {title:"Upload File",description: "Put your files here.",target:()=>btn_upload}, + {title:"Save",description: "Save your changes.",target:()=>btn_save}, + {title:"Other Actions",description: "Click to see other actions.",target:()=>btn_more} + ] +}' + } } diff --git a/example/qml/window/MainWindow.qml b/example/qml/window/MainWindow.qml index 80e3c47e..228274ff 100644 --- a/example/qml/window/MainWindow.qml +++ b/example/qml/window/MainWindow.qml @@ -261,6 +261,14 @@ CustomWindow { } } + Shortcut { + sequence: "F6" + context: Qt.WindowShortcut + onActivated: { + tour.open() + } + } + FluTour{ id:tour steps:[