Better icons and details text for password popups
This commit is contained in:
parent
d40852a11c
commit
088462c4f9
|
@ -39,6 +39,7 @@ HFileDialogOpener {
|
|||
id: exportPasswordPopup
|
||||
summary.text: qsTr("Passphrase to protect this file:")
|
||||
validateButton.text: qsTr("Export")
|
||||
validateButton.icon.name: "export-keys"
|
||||
|
||||
onAcceptedPasswordChanged: exportKeys(file, acceptedPassword)
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ HFileDialogOpener {
|
|||
qsTr("This might take a while...") :
|
||||
qsTr("Passphrase used to protect this file:")
|
||||
validateButton.text: qsTr("Import")
|
||||
validateButton.icon.name: "import-keys"
|
||||
|
||||
onClosed: if (importFuture) importFuture.cancel()
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ HFlickableColumnPopup {
|
|||
property bool okClicked: false
|
||||
|
||||
readonly property alias summary: summary
|
||||
readonly property alias details: details
|
||||
readonly property alias validateButton: validateButton
|
||||
|
||||
signal cancelled()
|
||||
|
@ -53,7 +54,7 @@ HFlickableColumnPopup {
|
|||
page.footer: ButtonLayout {
|
||||
ApplyButton {
|
||||
id: validateButton
|
||||
text: qsTr("Validate")
|
||||
text: qsTr("Confirm")
|
||||
enabled: Boolean(passwordField.text)
|
||||
onClicked: validate()
|
||||
}
|
||||
|
@ -79,6 +80,8 @@ HFlickableColumnPopup {
|
|||
|
||||
SummaryLabel { id: summary }
|
||||
|
||||
DetailsLabel { id: details }
|
||||
|
||||
HRowLayout {
|
||||
spacing: theme.spacing
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user