diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-06 20:34:56 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-06 20:34:56 +0200 |
commit | cb820fa02315cbf5ecc7f87435bc724460104f19 (patch) | |
tree | 19d089a0506c7da82f4e91af8e7df928d813a479 /qml/TopicPage.qml | |
parent | b04a2a981a91ed58e55a275402cb2f9f73bd85a2 (diff) | |
download | tapasboard-cb820fa02315cbf5ecc7f87435bc724460104f19.tar.gz tapasboard-cb820fa02315cbf5ecc7f87435bc724460104f19.zip |
support replying to posts
Diffstat (limited to 'qml/TopicPage.qml')
-rw-r--r-- | qml/TopicPage.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qml/TopicPage.qml b/qml/TopicPage.qml index ebaa2c6..32a86ec 100644 --- a/qml/TopicPage.qml +++ b/qml/TopicPage.qml @@ -18,6 +18,19 @@ Page { onClicked: pageStack.pop() } ToolIcon { + platformIconId: "toolbar-add" + onClicked: { + var component = Qt.createComponent("NewPostSheet.qml"); + if (component.status === Component.Ready) { + var sheet = component.createObject(topicPage, { + "board": board, + "topicId": topicId + }); + sheet.open(); + } + } + } + ToolIcon { platformIconId: board.busy ? "toolbar-cancle" : "toolbar-refresh" onClicked: { if (board.busy) { @@ -27,6 +40,9 @@ Page { } } } + ToolIcon { + platformIconId: "toolbar-view-menu" + } } ListView { @@ -49,6 +65,8 @@ Page { text: section } + cacheBuffer: 200 + delegate: Item { id: postItem |