Commit db926143 authored by Janet Blackquill's avatar Janet Blackquill 🌈
Browse files

Reorganise

parent 55269a9a
......@@ -8,48 +8,10 @@ ApplicationWindow {
property string language: ""
Component {
id: userPage
Item {
Kirigami.FormLayout {
anchors.centerIn: parent
TextField {
id: name
}
TextField {
id: user
}
TextField {
id: pass
}
Button {
text: "clicc"
onClicked: {
KISS.createAccount(name.text, user.text, pass.text, false, appWindow.language)
}
}
}
}
}
StackView {
id: staccy
anchors.fill: parent
initialItem: ListView {
model: KISS.locales
delegate: Kirigami.BasicListItem {
text: modelData
onClicked: {
appWindow.language = modelData
staccy.push(userPage)
}
}
}
initialItem: "pages/locale/Page.qml"
}
}
<RCC>
<qresource prefix="/">
<file>Main.qml</file>
<file>pages/user/Page.qml</file>
<file>pages/locale/Page.qml</file>
</qresource>
</RCC>
import QtQuick 2.5
import QtQuick.Controls 2.15
import org.kde.kirigami 2.10 as Kirigami
ListView {
model: KISS.locales
delegate: Kirigami.BasicListItem {
text: modelData
onClicked: {
appWindow.language = modelData
staccy.push("qrc:/pages/user/Page.qml")
}
}
}
import QtQuick 2.5
import QtQuick.Controls 2.15
import org.kde.kirigami 2.10 as Kirigami
Item {
Kirigami.FormLayout {
anchors.centerIn: parent
TextField {
id: name
Kirigami.FormData.label: "Realname:"
}
TextField {
id: user
Kirigami.FormData.label: "Username:"
}
Kirigami.PasswordField {
id: pass
Kirigami.FormData.label: "Password:"
}
Button {
text: "create user"
onClicked: {
KISS.createAccount(name.text, user.text, pass.text, true, appWindow.language)
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment