summaryrefslogtreecommitdiff
path: root/metawatchwatchlets/ChatBubble.qml
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-12 03:49:38 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-12 03:49:38 +0200
commit3ca9235ddb93b52730099164a0dc387f7a301280 (patch)
treeaa6e74210ce6075fc9e974dd275d28adf5f5d0c5 /metawatchwatchlets/ChatBubble.qml
parentac182bd9bf076b4d03d4812e85b989edae32d756 (diff)
downloadsowatch-3ca9235ddb93b52730099164a0dc387f7a301280.tar.gz
sowatch-3ca9235ddb93b52730099164a0dc387f7a301280.zip
weather rendering in metawatchwatchlets
Diffstat (limited to 'metawatchwatchlets/ChatBubble.qml')
-rw-r--r--metawatchwatchlets/ChatBubble.qml37
1 files changed, 37 insertions, 0 deletions
diff --git a/metawatchwatchlets/ChatBubble.qml b/metawatchwatchlets/ChatBubble.qml
new file mode 100644
index 0000000..ba69e64
--- /dev/null
+++ b/metawatchwatchlets/ChatBubble.qml
@@ -0,0 +1,37 @@
+import QtQuick 1.0
+
+Item {
+ id: container
+ height: bubble.height + 4
+
+ default property alias children: childContainer.children
+
+ Image {
+ anchors {
+ top: parent.top; left: parent.left;
+ leftMargin: 18;
+ }
+ source: "bubble_tip.png"
+ z: 1
+ }
+
+ BorderImage {
+ id: bubble
+ anchors {
+ top: parent.top; left: parent.left; right: parent.right;
+ topMargin: 8;
+ }
+ border { left: 16; top: 16; right: 16; bottom: 16; }
+ height: childContainer.height + 16
+ source: "bubble.png"
+ Item {
+ id: childContainer
+ height: childrenRect.height
+ anchors {
+ top: parent.top; left: parent.left; right: parent.right;
+ margins: 16 / 2
+ }
+ }
+ }
+}
+