Commit df49734f authored by Yunhe Guo's avatar Yunhe Guo
Browse files

Fix issues from D24798 comments by @davidedmundson

Summary: Lower QQC2 version to minimum requirement. Add context to i18nc function. Cannot use `i18ncp` because the number isn't integer.

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25319
parent dac6be58
......@@ -19,7 +19,7 @@
*/
import QtQuick 2.13
import QtQuick.Controls 2.13 as QQC2
import QtQuick.Controls 2.8 as QQC2
import QtQuick.Layouts 1.0
import QtQuick.Dialogs 1.1
......
......@@ -131,7 +131,7 @@ Item {
}
textFromValue: function(value) {
var seconds = value / 1000
return i18n("%1 seconds", seconds.toFixed(1))
return i18nc("SpinBox text", "%1 seconds", seconds.toFixed(1))
}
valueFromText: function(text) {
return parseFloat(text) * 1000
......
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