21import QtQuick.Controls
23import org.mauikit.controls as Maui
41 title: i18nd("mauikitaccounts",
"New Account")
46 property
bool customServer: false
51 readonly property alias serverField: _serverField
56 readonly property alias userField: _userField
61 readonly property alias passwordField: _passwordField
68 text:
i18nd(
"mauikitaccounts",
"Sign up")
69 enabled: !customServer
70 onTriggered:
Qt.openUrlExternally(
"https://www.opendesktop.org/register")
75 text:
i18nd(
"mauikitaccounts",
"Sign in")
76 onTriggered: control.accepted()
85 Layout.alignment:
Qt.AlignCenter
86 Layout.preferredWidth:
Maui.Style.iconSizes.huge
87 Layout.preferredHeight:
Maui.Style.iconSizes.huge
88 Layout.margins:
Maui.Style.space.medium
90 sourceComponent: Image
92 sourceSize.width: width
93 sourceSize.height: height
95 source:
"qrc:/assets/opendesktop.png"
101 visible: !customServer
102 Layout.fillWidth:
true
103 horizontalAlignment:
Qt.AlignHCenter
104 Layout.preferredHeight:
Maui.Style.rowHeight
105 text:
"opendesktop.org"
106 elide:
Text.ElideNone
107 wrapMode:
Text.NoWrap
108 font.weight: Font.Bold
110 font.pointSize:
Maui.Style.fontSizes.big
116 Layout.fillWidth:
true
117 placeholderText:
i18nd(
"mauikitaccounts",
"Username")
118 icon.source: "im-user"
119 inputMethodHints:
Qt.ImhNoAutoUppercase |
Qt.ImhSensitiveData
125 Layout.fillWidth:
true
126 placeholderText:
i18nd(
"mauikitaccounts",
"Password")
132 visible: customServer
134 Layout.fillWidth:
true
135 placeholderText:
i18nd(
"mauikitaccounts",
"Server address")
136 inputMethodHints:
Qt.ImhUrlCharactersOnly |
Qt.ImhNoAutoUppercase
137 text: customServer ? "" : "https:
142 Layout.fillWidth:
true
143 icon.name:
"filename-space-amarok"
144 text: customServer ?
i18nd(
"mauikitaccounts",
"opendesktop") :
i18nd(
"mauikitaccounts",
"Custom server")
145 onClicked: customServer = !customServer
QString i18nd(const char *domain, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:14 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.