Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamila <hello@camila.codes>2021-05-25 23:17:33 +0300
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>2021-06-16 10:55:33 +0300
commit19e581657d44df403f299a3f8770b66b69aab1ba (patch)
treece4cba59d351ccd876f450e30b89d5e930722ce2 /src/gui/tray/UserLine.qml
parent5585f61cc0205cf8d39a239ccc64d8f0d746af9c (diff)
Fix QML warning: Cannot specify left, right... anchors for items inside Row.
Signed-off-by: Camila <hello@camila.codes>
Diffstat (limited to 'src/gui/tray/UserLine.qml')
-rw-r--r--src/gui/tray/UserLine.qml26
1 files changed, 9 insertions, 17 deletions
diff --git a/src/gui/tray/UserLine.qml b/src/gui/tray/UserLine.qml
index 58b26f0c6..8945b656d 100644
--- a/src/gui/tray/UserLine.qml
+++ b/src/gui/tray/UserLine.qml
@@ -61,7 +61,7 @@ MenuItem {
id: accountControlRowLayout
height: accountButton.height
width: accountButton.width
- spacing: 0
+ spacing: Style.userStatusSpacing
Image {
id: accountAvatar
Layout.leftMargin: 7
@@ -99,15 +99,10 @@ MenuItem {
Column {
id: accountLabels
- spacing: Style.accountLabelsSpacing
- Layout.alignment: Qt.AlignLeft
- Layout.leftMargin: Style.accountLabelsLayoutMargin
- anchors.top: accountAvatar.top
- anchors.topMargin: Style.userStatusAnchorsMargin
- anchors.left: accountAvatar.right
- anchors.leftMargin: Style.accountLabelsAnchorsMargin
+ Layout.leftMargin: Style.accountLabelsSpacing
Label {
id: accountUser
+ Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
width: 128
text: name
elide: Text.ElideRight
@@ -115,11 +110,12 @@ MenuItem {
font.pixelSize: Style.topLinePixelSize
font.bold: true
}
- Row {
+ RowLayout {
id: userStatus
visible: model.isConnected &&
model.serverHasUserStatus
- anchors.top: accountUser.bottom
+ spacing: Style.userStatusAnchorsMargin
+ Layout.alignment: Qt.AlignLeft | Qt.AlignTop
Label {
id: emoji
visible: model.statusEmoji !== ""
@@ -128,9 +124,8 @@ MenuItem {
}
Label {
id: message
- anchors.bottom: emoji.bottom
- anchors.left: emoji.right
- anchors.leftMargin: emoji.width + Style.userStatusSpacing
+ Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
+ Layout.leftMargin: Style.userStatusAnchorsMargin
visible: model.statusMessage !== ""
width: Style.currentAccountLabelWidth
text: statusMessage
@@ -141,10 +136,7 @@ MenuItem {
}
Label {
id: accountServer
- anchors.top: userStatus.bottom
- anchors.topMargin: message.visible
- ? message.height + Style.accountServerAnchorsMargin
- : Style.userStatusAnchorsMargin
+ Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
width: Style.currentAccountLabelWidth
text: server
elide: Text.ElideRight