2019-03-22 14:28:14 +11:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.0
|
|
|
|
import QtQuick.Layouts 1.4
|
|
|
|
|
2019-03-23 11:45:22 +11:00
|
|
|
Column {
|
2019-03-22 14:28:14 +11:00
|
|
|
readonly property string displayName:
|
|
|
|
Backend.getUser(section).display_name
|
|
|
|
|
|
|
|
width: roomListView.width
|
2019-03-23 11:45:22 +11:00
|
|
|
height: paddingItem.height + row.height
|
2019-03-22 14:28:14 +11:00
|
|
|
|
2019-03-23 11:45:22 +11:00
|
|
|
Item { id: paddingItem; width: 1; height: row.height / 2 }
|
|
|
|
|
|
|
|
Row {
|
2019-03-22 14:28:14 +11:00
|
|
|
id: row
|
|
|
|
width: parent.width
|
2019-03-23 11:45:22 +11:00
|
|
|
height: avatar.height
|
2019-03-22 14:28:14 +11:00
|
|
|
|
|
|
|
Avatar { id: avatar; username: displayName }
|
|
|
|
|
2019-03-23 11:45:22 +11:00
|
|
|
Rectangle {
|
|
|
|
color: "#111"
|
|
|
|
width: parent.width - avatar.width
|
|
|
|
height: parent.height
|
2019-03-22 14:28:14 +11:00
|
|
|
|
2019-03-23 11:45:22 +11:00
|
|
|
ColumnLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
spacing: 1
|
|
|
|
|
|
|
|
PlainLabel {
|
|
|
|
id: accountLabel
|
|
|
|
text: displayName
|
|
|
|
horizontalAlignment: Qt.AlignHCenter
|
|
|
|
color: "#CCC"
|
|
|
|
elide: Text.ElideRight
|
|
|
|
maximumLineCount: 1
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
TextField {
|
|
|
|
id: statusEdit
|
|
|
|
placeholderText: qsTr("Set status message")
|
|
|
|
background: Rectangle { color: "#333" }
|
|
|
|
color: "#CCC"
|
|
|
|
selectByMouse: true
|
|
|
|
font.family: "Roboto"
|
|
|
|
font.pixelSize: 12
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
2019-03-22 14:28:14 +11:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|