moment/src/qml/Base/HUserAvatar.qml
2019-08-11 08:34:36 -04:00

18 lines
483 B
QML

import QtQuick 2.12
HAvatar {
property string userId: ""
property string displayName: ""
property string avatarUrl: ""
readonly property var defaultImageUrl:
avatarUrl ? ("image://python/" + avatarUrl) : null
readonly property var defaultToolTipImageUrl:
avatarUrl ? ("image://python/" + avatarUrl) : null
name: displayName || userId.substring(1) // no leading @
imageUrl: defaultImageUrl
toolTipImageUrl:defaultToolTipImageUrl
}