summaryrefslogtreecommitdiff
path: root/qml/NewPostSheet.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/NewPostSheet.qml')
-rw-r--r--qml/NewPostSheet.qml38
1 files changed, 38 insertions, 0 deletions
diff --git a/qml/NewPostSheet.qml b/qml/NewPostSheet.qml
new file mode 100644
index 0000000..96de9bc
--- /dev/null
+++ b/qml/NewPostSheet.qml
@@ -0,0 +1,38 @@
+import QtQuick 1.1
+import com.nokia.meego 1.1
+import com.nokia.extras 1.1
+import com.javispedro.tapasboard 1.0
+
+Sheet {
+ id: newPostSheet
+
+ property Board board;
+ property int topicId;
+
+ anchors.leftMargin: UiConstants.DefaultMargin
+ anchors.rightMargin: UiConstants.DefaultMargin
+
+ acceptButtonText: qsTr("Submit")
+ rejectButtonText: qsTr("Cancel")
+
+ content: TextArea {
+ id: postText
+ anchors {
+ fill: parent
+ }
+
+ platformStyle: TextAreaStyle {
+ background: "image://theme/meegotouch-sheet-inputfield-background"
+ backgroundSelected: background
+ backgroundDisabled: ""
+ }
+
+ placeholderText: qsTr("Write your reply here")
+ focus: true
+ wrapMode: TextEdit.Wrap
+ }
+
+ onAccepted: {
+ board.replyToTopic(topicId, postText.text)
+ }
+}