2019-09-20 21:29:39 +02:00
|
|
|
import QtQuick 2.4
|
2025-01-07 14:41:48 +01:00
|
|
|
import Lomiri.Components 1.3
|
|
|
|
import Lomiri.Components.Popups 1.3
|
2019-09-20 21:29:39 +02:00
|
|
|
|
|
|
|
Dialog {
|
|
|
|
id: doubleValidationDialog
|
|
|
|
|
|
|
|
property string text
|
|
|
|
|
|
|
|
signal validated
|
|
|
|
signal canceled
|
|
|
|
|
|
|
|
Text {
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
text: doubleValidationDialog.text
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
text: i18n.tr("Ok")
|
2025-01-07 14:41:48 +01:00
|
|
|
color: LomiriColors.green
|
2019-09-20 21:29:39 +02:00
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
validated()
|
|
|
|
PopupUtils.close(doubleValidationDialog)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
id: cancelButton
|
|
|
|
text: i18n.tr("Cancel")
|
2025-01-07 14:41:48 +01:00
|
|
|
color: LomiriColors.red
|
2019-09-20 21:29:39 +02:00
|
|
|
onClicked: {
|
|
|
|
canceled()
|
|
|
|
PopupUtils.close(doubleValidationDialog)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|