Commit 36665c8a authored by Karel Slaný's avatar Karel Slaný

Fixed font size spin-box value problems.

parent 42b3bda1
......@@ -23,7 +23,7 @@
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.1
import QtQuick.Controls 2.2
import cz.nic.mobileDatovka 1.0
Item {
......@@ -130,7 +130,11 @@ Item {
from: 14
to: 20
stepSize: 1
onValueChanged: settings.setFontSize(fontSizeSpinBox.val())
/*
* Cannot use onValueChanged here because this resets
* the font size to minimal value on spin box creation.
*/
onValueModified: settings.setFontSize(fontSizeSpinBox.val())
function val() {
return value
}
......
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