summaryrefslogtreecommitdiff
path: root/metawatchwatchlets/ChatBubble.qml
blob: ba69e641a09a9c5cef01449e6e9641f9ed2ee19a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
			}
		}
	}
}