1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-07-05 03:22:27 +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

@ -24,7 +24,6 @@ MainView {
objectName: "mainView"
applicationName: "utpass.qrouland"
automaticOrientation: true
width: units.gu(45)
height: units.gu(75)
@ -49,4 +48,5 @@ MainView {
}
}
}

View File

@ -34,12 +34,12 @@ Component {
anchors.fill: parent
onClicked: {
var path = folderModel.folder + "/" + fileName;
if (fileIsDir) {
if (fileIsDir) {
folderModel.folder = path;
backAction.visible = true;
passwordListHeader.title = fileName;
} else {
console.debug("pass show %1".arg(path))
console.debug("pass show %1".arg(path));
Pass.show(path);
}
}

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