- text: {
- if (stopwatch.seconds < 60) {
- return qsTr("%n seconds", "", stopwatch.seconds)
- } else if (stopwatch.seconds < 60*60) {
- return qsTr("%1 minutes").arg(Math.floor(stopwatch.seconds/60))
- } else {
- var minutes = Math.floor(stopwatch.seconds/60)
- var hours = Math.floor(minutes/60)
- minutes = minutes % 60
- return qsTrId("%1h %2min").arg(hours).arg(minutes)
+ titleVisible: ((!root.update) && _maximumItems > 0) || (_maximumItems > 1)
+ textVisible: (root.update && (_maximumItems > 0))
+
+ title: qsTr("Pedalo")
+
+ text: {
+ if (stopwatch.seconds < 60) {
+ return qsTr("%n seconds", "", stopwatch.seconds)
+ } else if (stopwatch.seconds < 60*60) {
+ return qsTr("%1 minutes").arg(Math.floor(stopwatch.seconds/60))
+ } else {
+ var minutes = Math.floor(stopwatch.seconds/60)
+ var hours = Math.floor(minutes/60)
+ minutes = minutes % 60
+ return qsTrId("%1h %2min").arg(hours).arg(minutes)
+ }