summaryrefslogtreecommitdiff
path: root/metawatchwatchlets/ChatBubble.qml
blob: 1076afd81e8fb9651c4a889a67e9756e12eb92ae (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
38
import QtQuick 1.0

Item {
	id: container
	height: tip.height + bubble.height

	default property alias children: childContainer.children

	Image {
		id: tip
		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: 9;
		}
		border { left: 14; top: 14; right: 14; bottom: 14; }
		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
			}
		}
	}
}