2019-07-08 13:52:41 +10:00
|
|
|
// Copyright 2019 miruka
|
|
|
|
// This file is part of harmonyqml, licensed under LGPLv3.
|
|
|
|
|
2019-07-13 19:39:01 +10:00
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Layouts 1.12
|
2019-05-13 03:17:42 +10:00
|
|
|
import "../../Base"
|
|
|
|
|
2019-07-18 15:56:58 +10:00
|
|
|
HInteractiveRectangle {
|
2019-05-13 03:17:42 +10:00
|
|
|
id: memberDelegate
|
|
|
|
width: memberList.width
|
|
|
|
height: childrenRect.height
|
|
|
|
|
2019-07-08 12:41:32 +10:00
|
|
|
property var memberInfo: users.find(model.userId)
|
2019-05-13 03:17:42 +10:00
|
|
|
|
2019-07-13 08:15:06 +10:00
|
|
|
Row {
|
|
|
|
width: parent.width - leftPadding * 2
|
|
|
|
padding: roomSidePane.currentSpacing / 2
|
|
|
|
leftPadding: roomSidePane.currentSpacing
|
|
|
|
rightPadding: 0
|
2019-05-13 03:17:42 +10:00
|
|
|
|
2019-07-13 08:15:06 +10:00
|
|
|
HRowLayout {
|
|
|
|
width: parent.width
|
|
|
|
spacing: roomSidePane.currentSpacing
|
|
|
|
|
|
|
|
HUserAvatar {
|
|
|
|
id: avatar
|
|
|
|
userId: model.userId
|
|
|
|
}
|
2019-05-13 03:17:42 +10:00
|
|
|
|
2019-07-13 08:15:06 +10:00
|
|
|
HColumnLayout {
|
|
|
|
Layout.fillWidth: true
|
2019-05-13 03:17:42 +10:00
|
|
|
|
2019-07-13 08:15:06 +10:00
|
|
|
HLabel {
|
|
|
|
id: memberName
|
|
|
|
text: memberInfo.displayName || model.userId
|
|
|
|
elide: Text.ElideRight
|
|
|
|
verticalAlignment: Qt.AlignVCenter
|
2019-05-13 03:17:42 +10:00
|
|
|
|
2019-07-16 19:08:27 +10:00
|
|
|
Layout.fillWidth: true
|
2019-07-13 08:15:06 +10:00
|
|
|
}
|
2019-05-13 03:17:42 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|