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

Using AccessibleSpinBox instead of SpinBox.

parent 318190fe
...@@ -136,24 +136,25 @@ Item { ...@@ -136,24 +136,25 @@ Item {
color: datovkaPalette.text color: datovkaPalette.text
text: qsTr("ZFO storage size limit in MB") text: qsTr("ZFO storage size limit in MB")
} }
SpinBox { AccessibleSpinBox {
/* Holds value in MBs. */ /* Holds value in MBs. */
id: zfoDbSizeSpinBox id: zfoDbSizeSpinBox
height: inputItemHeight
font.pointSize: defaultTextFont.font.pointSize
from: 0 from: 0
to: 1000 to: 1000
stepSize: 100 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 { AccessibleText {
color: datovkaPalette.mid color: datovkaPalette.mid
width: parent.width width: parent.width
text: if (zfoDbSizeSpinBox.value === 0) { text: if (zfoDbSizeSpinBox.val() === 0) {
qsTr("Message ZFO data won't be automatically stored.") qsTr("Message ZFO data won't be automatically stored.")
} else { } 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 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