Reorder QML files to follow coding conventions
https://doc.qt.io/qt-5/qml-codingconventions.html#qml-object-declarations
This commit is contained in:
@@ -3,10 +3,6 @@
|
||||
import QtQuick 2.12
|
||||
|
||||
HAvatar {
|
||||
name: displayName || userId.substring(1) // no leading @
|
||||
title: "user_" + userId + ".avatar"
|
||||
|
||||
|
||||
property string userId
|
||||
property string displayName
|
||||
property string presence: ""
|
||||
@@ -18,6 +14,9 @@ HAvatar {
|
||||
readonly property bool moderator: powerLevel >= 50 && ! admin
|
||||
|
||||
|
||||
name: displayName || userId.substring(1) // no leading @
|
||||
title: "user_" + userId + ".avatar"
|
||||
|
||||
HLoader {
|
||||
active: admin || moderator || invited
|
||||
anchors.top: parent.top
|
||||
@@ -53,6 +52,11 @@ HAvatar {
|
||||
}
|
||||
|
||||
HLoader {
|
||||
property int diameter:
|
||||
window.settings.compactMode ?
|
||||
theme.controls.presence.radius * 2 :
|
||||
theme.controls.presence.radius * 2.5
|
||||
|
||||
active: presence && presence !== "offline"
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.right: parent.right
|
||||
@@ -61,11 +65,6 @@ HAvatar {
|
||||
opacity: theme.controls.presence.opacity
|
||||
z: 300
|
||||
|
||||
property int diameter:
|
||||
window.settings.compactMode ?
|
||||
theme.controls.presence.radius * 2 :
|
||||
theme.controls.presence.radius * 2.5
|
||||
|
||||
sourceComponent: Rectangle {
|
||||
width: diameter
|
||||
height: diameter
|
||||
|
||||
Reference in New Issue
Block a user