Use common StackView
This commit is contained in:
@@ -4,20 +4,19 @@ import QtQuick.Controls
|
||||
import QtQuick.Dialogs
|
||||
import QtQuick.Layouts
|
||||
|
||||
|
||||
Item {
|
||||
property string recpass: ""
|
||||
|
||||
function dbConnectionFailed(msg) {
|
||||
oschkar.notificationBox.informativeText = msg;
|
||||
oschkar.notificationBox.text = "Verbindung zum Datenbankserver verloren";
|
||||
oschkar.notificationBox.open();
|
||||
notifications.notificationDialog.informativeText = msg;
|
||||
notifications.notificationDialog.text = "Verbindung zum Datenbankserver verloren";
|
||||
notifications.notificationDialog.open();
|
||||
}
|
||||
function getEncryptionKey() {
|
||||
recoveryPaswordDialog.open();
|
||||
}
|
||||
function loggedin() {
|
||||
appLoader.source = "Dashboard.qml";
|
||||
contentStack.replace("Dashboard.qml");
|
||||
}
|
||||
|
||||
anchors.fill: parent
|
||||
@@ -79,8 +78,8 @@ Item {
|
||||
}
|
||||
Button {
|
||||
Layout.topMargin: Dimensions.m
|
||||
implicitWidth: parent.width
|
||||
icon.source: "qrc:/images/ArrowRightEndOnRectangle.svg"
|
||||
implicitWidth: parent.width
|
||||
text: qsTr("Login")
|
||||
|
||||
onClicked: {
|
||||
@@ -132,8 +131,7 @@ Item {
|
||||
onRejected: quit()
|
||||
}
|
||||
Notifications {
|
||||
id: oschkar
|
||||
|
||||
id: notifications
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user