From 6391fc8dc66c564cb5f3dba5681f383889710c0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sat, 1 Apr 2023 21:51:59 +0800 Subject: [PATCH] update --- example/T_MediaPlayer.qml | 19 +++++++++++++++++-- example/page/AboutPage.qml | 2 +- example/page/LoginPage.qml | 1 + example/page/MediaPage.qml | 8 ++++---- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/example/T_MediaPlayer.qml b/example/T_MediaPlayer.qml index e3c480d1..beaf4745 100644 --- a/example/T_MediaPlayer.qml +++ b/example/T_MediaPlayer.qml @@ -31,11 +31,26 @@ FluScrollablePage{ } FluMediaPlayer{ id:player -// source:"http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4" source:"http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" -// source:"http://video.chinanews.com/flv/2019/04/23/400/111773_web.mp4" } } } + + FluArea{ + width: parent.width + height: 68 + Layout.topMargin: 20 + paddings: 10 + + FluButton{ + text:"跳转到视频播放器窗口" + anchors.verticalCenter: parent.verticalCenter + onClicked:{ + FluApp.navigate("/media",{source:"http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"}) + } + } + + } + } diff --git a/example/page/AboutPage.qml b/example/page/AboutPage.qml index 7708d968..a87e3ce7 100644 --- a/example/page/AboutPage.qml +++ b/example/page/AboutPage.qml @@ -36,7 +36,7 @@ FluWindow { fontStyle: FluText.Title } FluText{ - text:"v1.1.7" + text:"v1.1.8" fontStyle: FluText.Body Layout.alignment: Qt.AlignBottom } diff --git a/example/page/LoginPage.qml b/example/page/LoginPage.qml index 6a44683c..626e06b2 100644 --- a/example/page/LoginPage.qml +++ b/example/page/LoginPage.qml @@ -1,5 +1,6 @@ import QtQuick import QtQuick.Layouts +import QtQuick.Controls import FluentUI FluWindow { diff --git a/example/page/MediaPage.qml b/example/page/MediaPage.qml index 6a29aae5..cd14b886 100644 --- a/example/page/MediaPage.qml +++ b/example/page/MediaPage.qml @@ -12,6 +12,10 @@ FluWindow { title:"视频播放器" + onInitArgument: + (argument)=>{ + player.source = argument.source + } FluAppBar{ id:appbar @@ -28,10 +32,6 @@ FluWindow { top: appbar.bottom bottom: parent.bottom } - // source:"http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4" - source:"http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" - // source:"http://video.chinanews.com/flv/2019/04/23/400/111773_web.mp4" } - }