1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-06-24 22:42:28 +00:00

Add docsting for pass plugin

This commit is contained in:
2025-01-15 23:40:35 +01:00
parent e589abd10c
commit beaad58af2
11 changed files with 510 additions and 122 deletions

View File

@ -1,11 +1,11 @@
import "headers"
import "../components"
import "../dialogs"
import Lomiri.Components 1.3
import Lomiri.Components.Popups 1.3
import Pass 1.0
import Qt.labs.folderlistmodel 2.1
import QtQuick 2.4
import Lomiri.Components.Popups 1.3
import "headers"
Page {
id: passwordListPage
@ -64,6 +64,15 @@ Page {
}
Component {
id: passwordPageDecryptError
ErrorDialog {
textError: i18n.tr("Decryption failed !")
}
}
header: MainHeader {
id: passwordListHeader
@ -89,13 +98,4 @@ Page {
]
}
Component {
id: passwordPageDecryptError
ErrorDialog {
textError: i18n.tr("Decryption failed !")
}
}
}

View File

@ -11,6 +11,16 @@ Page {
property string currentKey
Component.onCompleted: {
Pass.onGetAllGPGKeysSucceed.connect(function(keys_info) {
infoKeysListView.model = keys_info;
});
Pass.getAllGPGKeysFailed.connect(function(message) {
PopupUtils.open(infoKeysPageGetAllError);
});
Pass.getAllGPGKeys();
}
ListView {
id: infoKeysListView
@ -18,7 +28,6 @@ Page {
anchors.bottom: parent.bottom
anchors.right: parent.right
anchors.left: parent.left
model: Pass.getAllGPGKeys()
delegate: Grid {
columns: 1
@ -153,6 +162,15 @@ Page {
}
Component {
id: infoKeysPageGetAllError
ErrorDialog {
textError: i18n.tr("Decryption failed !")
}
}
header: StackHeader {
id: infoKeysHeader