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/Window.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/Window.qml')
-rw-r--r--src/gui/tray/Window.qml14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml
index f708f3b64..d5afdef76 100644
--- a/src/gui/tray/Window.qml
+++ b/src/gui/tray/Window.qml
@@ -353,12 +353,12 @@ Window {
Column {
id: accountLabels
- spacing: Style.userStatusSpacing
- Layout.alignment: Qt.AlignLeft | Qt.AlignTop
+ spacing: 0
+ Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
Layout.leftMargin: Style.userStatusSpacing
- Layout.topMargin: Style.accountLabelsLayoutTopMargin
Label {
id: currentAccountUser
+ Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
width: Style.currentAccountLabelWidth
text: UserModel.currentUser.name
elide: Text.ElideRight
@@ -366,11 +366,11 @@ Window {
font.pixelSize: Style.topLinePixelSize
font.bold: true
}
- Row {
+ RowLayout {
id: currentUserStatus
visible: UserModel.currentUser.isConnected &&
UserModel.currentUser.serverHasUserStatus
- anchors.top: currentAccountUser.bottom
+ spacing: Style.accountLabelsSpacing
Label {
id: emoji
visible: UserModel.currentUser.statusEmoji !== ""
@@ -379,9 +379,7 @@ Window {
}
Label {
id: message
- anchors.bottom: emoji.bottom
- anchors.left: emoji.right
- anchors.leftMargin: emoji.width + Style.userStatusSpacing
+ Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
visible: UserModel.currentUser.statusMessage !== ""
width: Style.currentAccountLabelWidth
text: UserModel.currentUser.statusMessage !== ""