mirror of
https://github.com/QRouland/UTPass.git
synced 2025-06-24 14:35:40 +00:00
Fix style command
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import QtQuick 2.4
|
||||
import Lomiri.Components 1.3
|
||||
import Lomiri.Components.Popups 1.3
|
||||
import QtQuick 2.4
|
||||
|
||||
Dialog {
|
||||
id: doubleValidationDialog
|
||||
@ -9,8 +9,8 @@ Dialog {
|
||||
property string text1
|
||||
property string text2
|
||||
|
||||
signal doubleValidated
|
||||
signal canceled
|
||||
signal doubleValidated()
|
||||
signal canceled()
|
||||
|
||||
Text {
|
||||
visible: nb_validation == 0
|
||||
@ -27,26 +27,27 @@ Dialog {
|
||||
Button {
|
||||
text: i18n.tr("Ok")
|
||||
color: LomiriColors.green
|
||||
|
||||
onClicked: {
|
||||
if (nb_validation == 1) {
|
||||
nb_validation = 0
|
||||
doubleValidated()
|
||||
PopupUtils.close(doubleValidationDialog)
|
||||
nb_validation = 0;
|
||||
doubleValidated();
|
||||
PopupUtils.close(doubleValidationDialog);
|
||||
} else {
|
||||
nb_validation += 1
|
||||
nb_validation += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
id: cancelButton
|
||||
|
||||
text: i18n.tr("Cancel")
|
||||
color: LomiriColors.red
|
||||
onClicked: {
|
||||
nb_validation = 0
|
||||
canceled()
|
||||
PopupUtils.close(doubleValidationDialog)
|
||||
nb_validation = 0;
|
||||
canceled();
|
||||
PopupUtils.close(doubleValidationDialog);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,22 +1,24 @@
|
||||
import QtQuick 2.4
|
||||
import Lomiri.Components 1.3
|
||||
import Lomiri.Components.Popups 1.3
|
||||
import QtQuick 2.4
|
||||
|
||||
Dialog {
|
||||
id: dialogError
|
||||
|
||||
property string textError
|
||||
|
||||
signal dialogClosed
|
||||
signal dialogClosed()
|
||||
|
||||
title: i18n.tr("Error !")
|
||||
text: textError
|
||||
|
||||
Button {
|
||||
text: i18n.tr("Close")
|
||||
color: LomiriColors.red
|
||||
onClicked: function () {
|
||||
dialogClosed()
|
||||
PopupUtils.close(dialogError)
|
||||
onClicked: function() {
|
||||
dialogClosed();
|
||||
PopupUtils.close(dialogError);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,25 +1,25 @@
|
||||
import QtQuick 2.4
|
||||
import Lomiri.Components 1.3
|
||||
import Lomiri.Components.Popups 1.3
|
||||
import QtQuick 2.4
|
||||
|
||||
Dialog {
|
||||
id: passphraseProvider
|
||||
title: i18n.tr("Authentication required")
|
||||
text: i18n.tr("Enter passphrase:")
|
||||
|
||||
signal validated(string passphrase)
|
||||
signal canceled
|
||||
signal canceled()
|
||||
|
||||
function activateFocus() {
|
||||
passphraseField.forceActiveFocus()
|
||||
passphraseField.forceActiveFocus();
|
||||
}
|
||||
|
||||
title: i18n.tr("Authentication required")
|
||||
text: i18n.tr("Enter passphrase:")
|
||||
|
||||
TextField {
|
||||
id: passphraseField
|
||||
|
||||
placeholderText: i18n.tr("passphrase")
|
||||
echoMode: TextInput.Password
|
||||
|
||||
onAccepted: okButton.clicked(text)
|
||||
}
|
||||
|
||||
@ -28,23 +28,22 @@ Dialog {
|
||||
|
||||
text: i18n.tr("Ok")
|
||||
color: LomiriColors.green
|
||||
|
||||
onClicked: {
|
||||
validated(passphraseField.text)
|
||||
passphraseField.text = ""
|
||||
PopupUtils.close(passphraseProvider)
|
||||
validated(passphraseField.text);
|
||||
passphraseField.text = "";
|
||||
PopupUtils.close(passphraseProvider);
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
id: cancelButton
|
||||
|
||||
text: i18n.tr("Cancel")
|
||||
|
||||
color: LomiriColors.red
|
||||
|
||||
onClicked: {
|
||||
canceled()
|
||||
PopupUtils.close(passphraseProvider)
|
||||
canceled();
|
||||
PopupUtils.close(passphraseProvider);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,14 +1,14 @@
|
||||
import QtQuick 2.4
|
||||
import Lomiri.Components 1.3
|
||||
import Lomiri.Components.Popups 1.3
|
||||
import QtQuick 2.4
|
||||
|
||||
Dialog {
|
||||
id: doubleValidationDialog
|
||||
|
||||
property string text
|
||||
|
||||
signal validated
|
||||
signal canceled
|
||||
signal validated()
|
||||
signal canceled()
|
||||
|
||||
Text {
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
@ -18,20 +18,21 @@ Dialog {
|
||||
Button {
|
||||
text: i18n.tr("Ok")
|
||||
color: LomiriColors.green
|
||||
|
||||
onClicked: {
|
||||
validated()
|
||||
PopupUtils.close(doubleValidationDialog)
|
||||
validated();
|
||||
PopupUtils.close(doubleValidationDialog);
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
id: cancelButton
|
||||
|
||||
text: i18n.tr("Cancel")
|
||||
color: LomiriColors.red
|
||||
onClicked: {
|
||||
canceled()
|
||||
PopupUtils.close(doubleValidationDialog)
|
||||
canceled();
|
||||
PopupUtils.close(doubleValidationDialog);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,22 +1,24 @@
|
||||
import QtQuick 2.4
|
||||
import Lomiri.Components 1.3
|
||||
import Lomiri.Components.Popups 1.3
|
||||
import QtQuick 2.4
|
||||
|
||||
Dialog {
|
||||
id: dialogSuccess
|
||||
|
||||
property string textSuccess
|
||||
|
||||
signal dialogClosed
|
||||
signal dialogClosed()
|
||||
|
||||
title: i18n.tr("Success !")
|
||||
text: textSuccess
|
||||
|
||||
Button {
|
||||
text: i18n.tr("OK")
|
||||
color: LomiriColors.green
|
||||
onClicked: function () {
|
||||
dialogClosed()
|
||||
PopupUtils.close(dialogSuccess)
|
||||
onClicked: function() {
|
||||
dialogClosed();
|
||||
PopupUtils.close(dialogSuccess);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user