summaryrefslogtreecommitdiff
path: root/sowatchui/qml/NewWatchSheet.qml
diff options
context:
space:
mode:
Diffstat (limited to 'sowatchui/qml/NewWatchSheet.qml')
-rw-r--r--sowatchui/qml/NewWatchSheet.qml43
1 files changed, 43 insertions, 0 deletions
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
+ }
+ }
+}