2025-01-07 14:41:48 +01:00
|
|
|
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 {
|
2025-01-13 20:51:29 +01:00
|
|
|
//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);
|
2023-06-19 14:58:09 -04:00
|
|
|
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
|
2025-01-15 23:15:00 +01:00
|
|
|
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"
|
2025-01-15 23:15:00 +01:00
|
|
|
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
|
|
|
|
2025-01-15 23:15:00 +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
|
|
|
}
|