From 3aa62b0543d978c1a01c5cf05a898fd8d805c44b Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 9 Aug 2012 01:53:38 +0200 Subject: new watch scanning ui --- sowatchui/qml/NewWatchSheet.qml | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 sowatchui/qml/NewWatchSheet.qml (limited to 'sowatchui/qml/NewWatchSheet.qml') diff --git a/sowatchui/qml/NewWatchSheet.qml b/sowatchui/qml/NewWatchSheet.qml new file mode 100644 index 0000000..1028bd5 --- /dev/null +++ b/sowatchui/qml/NewWatchSheet.qml @@ -0,0 +1,43 @@ +import QtQuick 1.1 +import com.nokia.meego 1.1 +import com.nokia.extras 1.1 + +Sheet { + id: sheet + anchors.margins: UiConstants.DefaultMargin + + rejectButtonText: qsTr("Cancel") + + title: BusyIndicator { + anchors.centerIn: parent; + running: watchScanner.active + } + + Binding { + target: watchScanner + property: "enabled" + value: sheet.status === DialogStatus.Open + } + + content: ListView { + id: listView + anchors.fill: parent + anchors.margins: UiConstants.DefaultMargin + + flickableDirection: Flickable.VerticalFlick + + model: watchScanner + + delegate: ListDelegate { + onClicked: { + watches.addFoundWatch(object); + close(); + accepted(); + } + } + + ScrollDecorator { + flickableItem: listView + } + } +} -- cgit v1.2.3