Commit be02e087 authored by Karel Slaný's avatar Karel Slaný

Using AccessibleSpinBox instead of SpinBox.

parent 318190fe
......@@ -136,24 +136,25 @@ Item {
color: datovkaPalette.text
text: qsTr("ZFO storage size limit in MB")
}
SpinBox {
AccessibleSpinBox {
/* Holds value in MBs. */
id: zfoDbSizeSpinBox
height: inputItemHeight
font.pointSize: defaultTextFont.font.pointSize
from: 0
to: 1000
stepSize: 100
onValueModified: settings.setZfoDbSizeMBs(zfoDbSizeSpinBox.value)
Accessible.description: qsTr("Specify the maximal amount of memory for preserving recently downloaded messages.")
accessibleDescription: qsTr("Specify the maximal amount of memory for preserving recently downloaded messages.")
onValueModified: settings.setZfoDbSizeMBs(zfoDbSizeSpinBox.val())
}
AccessibleText {
color: datovkaPalette.mid
width: parent.width
text: if (zfoDbSizeSpinBox.value === 0) {
text: if (zfoDbSizeSpinBox.val() === 0) {
qsTr("Message ZFO data won't be automatically stored.")
} else {
qsTr("Maximum size of stored message ZFO data is set to %1 MB. Default is %2 MB.").arg(zfoDbSizeSpinBox.value).arg(200)
qsTr("Maximum size of stored message ZFO data is set to %1 MB. Default is %2 MB.").arg(zfoDbSizeSpinBox.val()).arg(200)
}
wrapMode: Text.Wrap
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment