From a644a7cc6749f8dd5ca20589ee6e59acc2892b3e Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Tue, 27 Sep 2011 04:51:30 +0200 Subject: new qmafw watchlet --- qmafwwatchlet/metawatch-digital.qml | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 qmafwwatchlet/metawatch-digital.qml (limited to 'qmafwwatchlet/metawatch-digital.qml') diff --git a/qmafwwatchlet/metawatch-digital.qml b/qmafwwatchlet/metawatch-digital.qml new file mode 100644 index 0000000..0ec07cd --- /dev/null +++ b/qmafwwatchlet/metawatch-digital.qml @@ -0,0 +1,52 @@ +import QtQuick 1.0 + +Rectangle { + width: 96 + height: 96 + + color: "white" + + Image { + anchors.fill: parent + fillMode: Image.PreserveAspectFit + smooth: true + source: player.imageUrl + } + + Rectangle { + x: 0 + width: parent.width + height: 14 + anchors.bottom: parent.bottom + color: "white" + + Text { + anchors.fill: parent + text: player.title + color: "black" + } + } + + Connections { + target: watch + onButtonPressed : { + switch(button) { + case 1: + player.volumeUp(); + break; + case 2: + player.volumeDown(); + break; + case 3: + player.playPause(); + break; + case 4: + player.next(); + break; + case 5: + player.previous(); + break; + } + } + } +} -- cgit v1.2.3