X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=qml%2FVideoPlayerPage.qml;h=9b6ec4f7bf2a07e2f250c19875f01109fab4bced;hp=68200302c7f71b41596d0467ab42884bfde0815d;hb=d9f0af7e2ceb416fd44a0ca14d20df8604754dd1;hpb=969345a1392efe1ad1d45458f54dc7ef3e81d3b2 diff --git a/qml/VideoPlayerPage.qml b/qml/VideoPlayerPage.qml index 6820030..9b6ec4f 100644 --- a/qml/VideoPlayerPage.qml +++ b/qml/VideoPlayerPage.qml @@ -20,8 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -import QtQuick 1.1 -import com.nokia.meego 1.1 +import QtQuick 2.0 import CameraPlus 1.0 import QtCamera 1.0 import QtCameraExtras 1.0 @@ -59,7 +58,7 @@ Item { VideoPlayer { id: video anchors.fill: parent - cameraConfig: cam.cameraConfig + cameraConfig: camera.cameraConfig onError: showError(qsTr("Error playing video. Please try again or restart the application")) @@ -105,19 +104,17 @@ Item { } items: [ - ToolIcon { + CameraToolIcon { iconId: "icon-m-toolbar-mediacontrol-stop-white" onClicked: video.stop() }, - Slider { + CameraSlider { id: slider height: toolBar.height anchors.verticalCenter: parent.verticalCenter - platformStyle: SliderStyle { - handleBackground: "" - handleBackgroundPressed: "" - } + handleBackground: "" + handleBackgroundPressed: "" minimumValue: 0 maximumValue: video.duration @@ -132,7 +129,7 @@ Item { hideTimer.restart() } }, - ToolIcon { + CameraToolIcon { id: control iconId: !video.paused ? "icon-m-toolbar-mediacontrol-pause-white" : "icon-m-toolbar-mediacontrol-play-white"