1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-01-24 23:56:39 +00:00
UTPass/qml/dialogs/SimpleValidationDialog.qml

42 lines
770 B
QML

import Lomiri.Components 1.3
import Lomiri.Components.Popups 1.3
import QtQuick 2.4
Dialog {
id: dialog
property string text
property string continueText: i18n.tr("Ok")
property color continueColor: theme.palette.normal.positive
signal validated()
signal canceled()
Text {
horizontalAlignment: Text.AlignHCenter
text: dialog.text
}
Button {
id: continueButton
text: dialog.continueText
color: dialog.continueColor
onClicked: {
validated();
PopupUtils.close(dialog);
}
}
Button {
id: cancelButton
text: i18n.tr("Cancel")
onClicked: {
canceled();
PopupUtils.close(dialog);
}
}
}