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:[