Convert the account details into an item

No idea why it was a column.

CURA-7454
This commit is contained in:
Jaime van Kessel 2020-06-11 16:58:28 +02:00
parent 1f402569ad
commit 6d86cbf03c
No known key found for this signature in database
GPG Key ID: 3710727397403C91
2 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,4 @@
// Copyright (c) 2018 Ultimaker B.V. // Copyright (c) 2020 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher. // Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.10 import QtQuick 2.10
@ -7,20 +7,16 @@ import QtQuick.Controls 2.3
import UM 1.4 as UM import UM 1.4 as UM
import Cura 1.1 as Cura import Cura 1.1 as Cura
Column Item
{ {
property var profile: Cura.API.account.userProfile property var profile: Cura.API.account.userProfile
property bool loggedIn: Cura.API.account.isLoggedIn property bool loggedIn: Cura.API.account.isLoggedIn
property var profileImage: Cura.API.account.profileImageUrl property var profileImage: Cura.API.account.profileImageUrl
padding: UM.Theme.getSize("wide_margin").height
spacing: UM.Theme.getSize("wide_margin").height
Loader Loader
{ {
id: accountOperations id: accountOperations
anchors.horizontalCenter: parent.horizontalCenter anchors.centerIn: parent
sourceComponent: loggedIn ? userOperations : generalOperations sourceComponent: loggedIn ? userOperations : generalOperations
} }

View File

@ -131,7 +131,7 @@ Item
opacity: opened ? 1 : 0 opacity: opened ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 100 } } Behavior on opacity { NumberAnimation { duration: 100 } }
padding: UM.Theme.getSize("wide_margin").height
contentItem: AccountDetails contentItem: AccountDetails
{} {}