diff options
| author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-09 01:53:38 +0200 | 
|---|---|---|
| committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-09 01:53:38 +0200 | 
| commit | 3aa62b0543d978c1a01c5cf05a898fd8d805c44b (patch) | |
| tree | 84ebdd8d94728375cd21457d8f5773f46ee0dcc7 /sowatchui/qml/MainPage.qml | |
| parent | 081aa7b760986092377be7f62cac3bdee7400874 (diff) | |
| download | sowatch-3aa62b0543d978c1a01c5cf05a898fd8d805c44b.tar.gz sowatch-3aa62b0543d978c1a01c5cf05a898fd8d805c44b.zip  | |
new watch scanning ui
Diffstat (limited to 'sowatchui/qml/MainPage.qml')
| -rw-r--r-- | sowatchui/qml/MainPage.qml | 79 | 
1 files changed, 25 insertions, 54 deletions
diff --git a/sowatchui/qml/MainPage.qml b/sowatchui/qml/MainPage.qml index a7ba7d7..b660161 100644 --- a/sowatchui/qml/MainPage.qml +++ b/sowatchui/qml/MainPage.qml @@ -1,67 +1,38 @@  import QtQuick 1.1 -import com.nokia.meego 1.0 +import com.nokia.meego 1.1 +import com.nokia.extras 1.1  Page {  	id: mainPage -    tools: commonTools +	anchors.leftMargin: UiConstants.DefaultMargin +	anchors.rightMargin: UiConstants.DefaultMargin -	ListModel { -		id: testModel -		ListElement { -			name: "one" -		} -		ListElement { -			name: "two" +	tools: ToolBarLayout { +		ToolIcon { +			platformIconId: "toolbar-add" +			anchors.right: parent.right +			onClicked: newWatchSheet.open()  		}  	} -	Flickable { -		anchors.fill: parent -		contentWidth: mainPage.width -		contentHeight: mainColumn.height + 100 - -		Column { -			id: mainColumn +	NewWatchSheet { +		id: newWatchSheet +	} -			width: mainPage.width -			height: childrenRect.height -			spacing: 8 +	ListView { +		id: watchesListView +		anchors.fill: parent +		model: watches -			ListView { -				model: testModel -				width: mainPage.width -				height: 50*model.count -				clip: true -				interactive: false -				delegate: Rectangle { -					height: 50 -					width: mainPage.width -					color: "red" -					Text { -						text: name -					} -				} -			} -			ListView { -				model: testModel -				width: mainPage.width -				height: 50*model.count -				clip: true -				interactive: false -				delegate: Rectangle { -					height: 50 -					width: mainPage.width -					color: "green" -					Text { -						text: name -					} -				} -			} -			Button { -				anchors.horizontalCenter: parent.horizontalCenter -				text: qsTr("Refresh") -				onClicked: Sowatch.refreshWatches() -			} +		delegate: ListDelegate { +			Image { +                source: "image://theme/icon-m-common-drilldown-arrow" + (theme.inverted ? "-inverse" : "") +                anchors.right: parent.right; +                anchors.verticalCenter: parent.verticalCenter +            }  		}  	} +	ScrollDecorator { +		flickableItem: watchesListView +	}  }  | 
