1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-01-24 07:36:39 +00:00
This commit is contained in:
Quentin Rouland 2025-01-14 13:05:09 +01:00
parent 200964246e
commit fd3ab95b27
6 changed files with 14 additions and 8 deletions

View File

@ -27,7 +27,7 @@ void LibGit::setMode(mode_type type)
} }
int LibGit::credentialsCB(git_cred **out, const char *url, const char *username_from_url, int LibGit::credentialsCB(git_cred **out, const char *url, const char *username_from_url,
unsigned int allowed_types, void *payload) unsigned int allowed_types, void *payload)
{ {
// TODO : More precise Error Handling for UI // TODO : More precise Error Handling for UI
auto instance = LibGit::instance(); auto instance = LibGit::instance();

View File

@ -27,7 +27,7 @@ private:
mode_type mode; mode_type mode;
static int credentialsCB(git_cred **out, const char *url, const char *username_from_url, static int credentialsCB(git_cred **out, const char *url, const char *username_from_url,
unsigned int allowed_types, void *payload); unsigned int allowed_types, void *payload);
public: public:
~LibGit(); ~LibGit();

View File

@ -19,7 +19,7 @@ public:
UserIdModel(UserID key): UserIdModel(UserID key):
m_user_id(key) m_user_id(key)
{}; {};
QString uid() const QString uid() const
{ {

View File

@ -21,10 +21,10 @@ MainView {
//TODO use parameters to impove passphrase dialog //TODO use parameters to impove passphrase dialog
var passphraseDialog = PopupUtils.open(Qt.resolvedUrl("dialogs/PassphraseDialog.qml")); var passphraseDialog = PopupUtils.open(Qt.resolvedUrl("dialogs/PassphraseDialog.qml"));
passphraseDialog.activateFocus(); passphraseDialog.activateFocus();
var validated = function (passphrase) { var validated = function validated(passphrase) {
responsePassphraseDialog(false, passphrase); responsePassphraseDialog(false, passphrase);
}; };
var canceled = function () { var canceled = function canceled() {
responsePassphraseDialog(true, ""); responsePassphraseDialog(true, "");
}; };
passphraseDialog.validated.connect(validated); passphraseDialog.validated.connect(validated);

View File

@ -95,6 +95,7 @@ Page {
font.pixelSize: 72 font.pixelSize: 72
color: theme.palette.normal.backgroundText color: theme.palette.normal.backgroundText
} }
} }
Flow { Flow {

View File

@ -48,7 +48,6 @@ Page {
color: theme.palette.normal.backgroundText color: theme.palette.normal.backgroundText
} }
Rectangle { Rectangle {
width: parent.width width: parent.width
height: units.gu(1) height: units.gu(1)
@ -59,8 +58,10 @@ Page {
id: userIdsModel id: userIdsModel
Component.onCompleted: { Component.onCompleted: {
for(var i=0; i< model.modelData.userIds.length; ++i){ for (var i = 0; i < model.modelData.userIds.length; ++i) {
userIdsModel.append({"model": model.modelData.userIds[i]}) userIdsModel.append({
"model": model.modelData.userIds[i]
});
} }
} }
} }
@ -75,6 +76,7 @@ Page {
Repeater { Repeater {
model: userIdsModel model: userIdsModel
Text { Text {
width: parent.width width: parent.width
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
@ -82,6 +84,7 @@ Page {
text: modelData.uid text: modelData.uid
color: theme.palette.normal.backgroundText color: theme.palette.normal.backgroundText
} }
} }
Rectangle { Rectangle {
@ -106,7 +109,9 @@ Page {
height: units.gu(1) height: units.gu(1)
color: theme.palette.normal.background color: theme.palette.normal.background
} }
} }
} }
Component { Component {