From 948d4be1e23487b2ee53f914c91101a1bd09d6b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 22 Sep 2019 12:04:24 +0800 Subject: Task list page title is set when the page changes --- Home.qml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Home.qml') diff --git a/Home.qml b/Home.qml index 8754bc7..6c0ff5d 100644 --- a/Home.qml +++ b/Home.qml @@ -28,6 +28,8 @@ HomeForm { text: qsTr("Today") onClicked: { contentView.push("TaskList.qml") + var taskList = contentView.currentItem + taskList.title = qsTr("Today") drawer.close() } } @@ -36,6 +38,8 @@ HomeForm { text:qsTr("Future") onClicked: { contentView.push("TaskList.qml") + var taskList = contentView.currentItem + taskList.title = qsTr("Future task") drawer.close() } } -- cgit v1.2.3