5
width: 300; height: 200
12
anchors.centerIn: parent
13
text: "Click to read file into console"
18
onClicked: console.log(todo.read('app.qml'))
25
import Ubuntu.Components 0.1
27
import Ubuntu.Components.ListItems 0.1 as ListItem
39
applicationName: "com.ubuntu.developer..tabbedui"
46
Component.onCompleted: push(page0)
50
title: i18n.tr("ToDo")
60
objectName: "button_text"
62
onClicked: {pageStack.push(page1); oldText.text = ""; todoname.text = ""}
63
//onClicked: print("clicked text and icon Button")
64
//onClicked: console.log(todo.readToDos('app.qml'))
69
anchors.left: parent.left
70
anchors.right: parent.right
74
model: todo.readToDos()//["design", "sqlite", "coding", "integration"]
76
text: i18n.tr(modelData)
78
onClicked: pageStack.push(page1, {text: modelData})
79
onItemRemoved: todo.deleteToDo(modelData)//print(index)
80
backgroundIndicator: Rectangle {
82
color: Theme.palette.normal.base
94
property alias text: oldText.text
100
objectName: "button_text"
101
text: i18n.tr("Save")
102
onClicked: {todo.editToDo(todoname.text, oldText.text); pageStack.pop();repeater.model = todo.refresh()}
105
objectName: "button_text1"
106
text: i18n.tr("Close")
107
onClicked: pageStack.pop()
112
anchors.left: parent.left
113
anchors.right: parent.right
116
objectName: "textfield_standard"
117
placeholderText: i18n.tr("Type todo name...")
133
width: 300; height: 200
142
onClicked: console.log(todo.read('app.qml'))