summaryrefslogtreecommitdiff
path: root/qml/TopicPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/TopicPage.qml')
-rw-r--r--qml/TopicPage.qml18
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