mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 05:39:37 +08:00
37 lines
757 B
QML
37 lines
757 B
QML
// Copyright (c) 2018 Ultimaker B.V.
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.10
|
|
import QtQuick.Controls 2.3
|
|
|
|
import UM 1.4 as UM
|
|
import Cura 1.1 as Cura
|
|
|
|
Column
|
|
{
|
|
property var profile: null
|
|
property var loggedIn: false
|
|
property var profileImage: ""
|
|
|
|
padding: UM.Theme.getSize("wide_margin").height
|
|
spacing: UM.Theme.getSize("wide_margin").height
|
|
|
|
Loader
|
|
{
|
|
id: accountOperations
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
sourceComponent: loggedIn ? userOperations : generalOperations
|
|
}
|
|
|
|
Component
|
|
{
|
|
id: userOperations
|
|
UserOperations { }
|
|
}
|
|
|
|
Component
|
|
{
|
|
id: generalOperations
|
|
GeneralOperations { }
|
|
}
|
|
} |