mirror of
				https://github.com/QRouland/UTPass.git
				synced 2025-11-04 01:56:31 +00:00 
			
		
		
		
	Style
This commit is contained in:
		@@ -27,7 +27,7 @@ void LibGit::setMode(mode_type type)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
    auto instance = LibGit::instance();
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,7 @@ private:
 | 
			
		||||
    mode_type mode;
 | 
			
		||||
 | 
			
		||||
    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:
 | 
			
		||||
    ~LibGit();
 | 
			
		||||
 
 | 
			
		||||
@@ -19,7 +19,7 @@ public:
 | 
			
		||||
 | 
			
		||||
    UserIdModel(UserID key):
 | 
			
		||||
        m_user_id(key)
 | 
			
		||||
        {};
 | 
			
		||||
    {};
 | 
			
		||||
 | 
			
		||||
    QString uid() const
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
@@ -21,10 +21,10 @@ MainView {
 | 
			
		||||
        //TODO use parameters to impove passphrase dialog
 | 
			
		||||
        var passphraseDialog = PopupUtils.open(Qt.resolvedUrl("dialogs/PassphraseDialog.qml"));
 | 
			
		||||
        passphraseDialog.activateFocus();
 | 
			
		||||
        var validated = function (passphrase) {
 | 
			
		||||
        var validated = function validated(passphrase) {
 | 
			
		||||
            responsePassphraseDialog(false, passphrase);
 | 
			
		||||
        };
 | 
			
		||||
        var canceled = function () {
 | 
			
		||||
        var canceled = function canceled() {
 | 
			
		||||
            responsePassphraseDialog(true, "");
 | 
			
		||||
        };
 | 
			
		||||
        passphraseDialog.validated.connect(validated);
 | 
			
		||||
 
 | 
			
		||||
@@ -95,6 +95,7 @@ Page {
 | 
			
		||||
            font.pixelSize: 72
 | 
			
		||||
            color: theme.palette.normal.backgroundText
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Flow {
 | 
			
		||||
 
 | 
			
		||||
@@ -48,7 +48,6 @@ Page {
 | 
			
		||||
                color: theme.palette.normal.backgroundText
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            Rectangle {
 | 
			
		||||
                width: parent.width
 | 
			
		||||
                height: units.gu(1)
 | 
			
		||||
@@ -59,8 +58,10 @@ Page {
 | 
			
		||||
                id: userIdsModel
 | 
			
		||||
 | 
			
		||||
                Component.onCompleted: {
 | 
			
		||||
                    for(var i=0; i< model.modelData.userIds.length; ++i){
 | 
			
		||||
                        userIdsModel.append({"model": model.modelData.userIds[i]})
 | 
			
		||||
                    for (var i = 0; i < model.modelData.userIds.length; ++i) {
 | 
			
		||||
                        userIdsModel.append({
 | 
			
		||||
                            "model": model.modelData.userIds[i]
 | 
			
		||||
                        });
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
@@ -75,6 +76,7 @@ Page {
 | 
			
		||||
 | 
			
		||||
            Repeater {
 | 
			
		||||
                model: userIdsModel
 | 
			
		||||
 | 
			
		||||
                Text {
 | 
			
		||||
                    width: parent.width
 | 
			
		||||
                    horizontalAlignment: Text.AlignHCenter
 | 
			
		||||
@@ -82,6 +84,7 @@ Page {
 | 
			
		||||
                    text: modelData.uid
 | 
			
		||||
                    color: theme.palette.normal.backgroundText
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            Rectangle {
 | 
			
		||||
@@ -106,7 +109,9 @@ Page {
 | 
			
		||||
                height: units.gu(1)
 | 
			
		||||
                color: theme.palette.normal.background
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Component {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user