-
Notifications
You must be signed in to change notification settings - Fork 9
/
SimpleMessageType.qml
35 lines (29 loc) · 1.19 KB
/
SimpleMessageType.qml
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
import QtQuick 2.5
import QtQml.Models 2.2
import QtQuick.Controls 2.0
Column {
spacing: 6
anchors.right: parent.right
readonly property bool sentByMe: model.recipient !== "User"
property alias mssg: messageText.text
Row {
id: messageRow
spacing: 6
Rectangle {
id: messageRect
width: cbwidth
radius: 2
height: messageText.implicitHeight + 24
color: "#111"
Label {
id: messageText
text: model.InputQuery
anchors.fill: parent
anchors.margins: 12
wrapMode: Label.Wrap
font.pixelSize: innerset.fntsize
color: "#fff"
}
}
}
}