From 13db264e83fb34cdcedaf7edd2ab2748759d8489 Mon Sep 17 00:00:00 2001 From: Igor Malinovskiy Date: Fri, 3 Apr 2020 17:43:10 +0300 Subject: [PATCH] Fix warnings from JS engine --- src/qml/common/BetterSpinBox.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qml/common/BetterSpinBox.qml b/src/qml/common/BetterSpinBox.qml index 2f88acf1..a58fa52d 100644 --- a/src/qml/common/BetterSpinBox.qml +++ b/src/qml/common/BetterSpinBox.qml @@ -5,5 +5,7 @@ import QtQuick.Controls 2.3 SpinBox { implicitHeight: 30 editable: true - textFromValue: function(value, locale) { return value } + textFromValue: renderText + + function renderText(value, locale) { return value } }