Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Datovka projects
mobile Datovka
Commits
be02e087
Commit
be02e087
authored
Jan 22, 2018
by
Karel Slaný
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using AccessibleSpinBox instead of SpinBox.
parent
318190fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
qml/pages/PageSettingsStorage.qml
qml/pages/PageSettingsStorage.qml
+8
-7
No files found.
qml/pages/PageSettingsStorage.qml
View file @
be02e087
...
...
@@ -136,24 +136,25 @@ Item {
color
:
datovkaPalette
.
text
text
:
qsTr
(
"
ZFO storage size limit in MB
"
)
}
SpinBox
{
Accessible
SpinBox
{
/* 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
.
val
ue
===
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
.
val
ue
).
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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment