diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-06 21:20:30 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-06 21:20:30 +0200 |
commit | b0886b317fd6de5fa960392b2a8a0dbb557475f5 (patch) | |
tree | a2e23cd67c601f2abee84b2d9553436f34716921 /qml/ForumPage.qml | |
parent | cb820fa02315cbf5ecc7f87435bc724460104f19 (diff) | |
download | tapasboard-b0886b317fd6de5fa960392b2a8a0dbb557475f5.tar.gz tapasboard-b0886b317fd6de5fa960392b2a8a0dbb557475f5.zip |
creating new topics
Diffstat (limited to 'qml/ForumPage.qml')
-rw-r--r-- | qml/ForumPage.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qml/ForumPage.qml b/qml/ForumPage.qml index 4f2b64f..6c21742 100644 --- a/qml/ForumPage.qml +++ b/qml/ForumPage.qml @@ -19,6 +19,16 @@ Page { } ToolIcon { platformIconId: "toolbar-add" + onClicked: { + var component = Qt.createComponent("NewTopicSheet.qml"); + if (component.status === Component.Ready) { + var sheet = component.createObject(forumPage, { + "board": board, + "forumId": forumId + }); + sheet.open(); + } + } } ToolIcon { platformIconId: board.busy ? "toolbar-cancle" : "toolbar-refresh" |