1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-01-24 23:56:39 +00:00
UTPass/qml/Main.qml

53 lines
1.2 KiB
QML
Raw Normal View History

import Lomiri.Components 1.3
import Lomiri.Components.Popups 1.3
2019-09-20 21:29:39 +02:00
import Pass 1.0
2025-01-10 15:28:42 +01:00
import QtQuick 2.4
import QtQuick.Layouts 1.1
2019-09-20 21:29:39 +02:00
import "dialogs"
MainView {
//theme.name: "Lomiri.Components.Themes.SuruDark"
2019-09-20 21:29:39 +02:00
id: root
function initPass(rootView) {
2025-01-14 08:15:03 +01:00
Pass.initialize(rootView);
pageStack.push(Qt.resolvedUrl("pages/PasswordList.qml"));
2019-09-20 21:29:39 +02:00
}
function callPassphraseDialog(useridHint, description, previousWasBad) {
//TODO use parameters to impove passphrase dialog
var pop = PopupUtils.open(passphraseDialog);
pop.activateFocus();
2019-09-20 21:29:39 +02:00
}
2025-01-10 15:28:42 +01:00
objectName: "mainView"
applicationName: "utpass.qrouland"
automaticOrientation: true
width: units.gu(45)
height: units.gu(75)
2025-01-10 15:28:42 +01:00
2019-09-20 21:29:39 +02:00
PageStack {
id: pageStack
2025-01-10 15:28:42 +01:00
anchors.fill: parent
2019-09-20 21:29:39 +02:00
}
2025-01-10 15:28:42 +01:00
Component {
id: passphraseDialog
PassphraseDialog {
onValidated: {
console.info("valided");
Pass.responsePassphraseDialog(false, passphrase);
}
onCanceled: {
console.info("canceled");
Pass.responsePassphraseDialog(true, "");
}
}
}
2019-09-20 21:29:39 +02:00
}