From b0886b317fd6de5fa960392b2a8a0dbb557475f5 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 6 Apr 2013 21:20:30 +0200 Subject: creating new topics --- qml/ForumPage.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'qml/ForumPage.qml') 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" -- cgit v1.2.3