Skip to content

Commit 5f687a6

Browse files
Change default recognition period to 8 seconds and clarify that it is in seconds in settings
1 parent dd9b80b commit 5f687a6

32 files changed

+124
-124
lines changed

qml/harbour-sshazam.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ApplicationWindow {
2727
id: appSettings
2828
path: 'settings'
2929

30-
property int recognitionTime: 10
30+
property int recognitionTime: 8
3131
property int rate: 41000
3232
property string language: ""
3333
property bool infoInNotifications: true

qml/pages/SettingsPage.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ Page {
1919
SectionHeader { text: qsTr("Recognition") }
2020
TextField {
2121
id: timeField
22-
label: qsTr("Recognition time")
22+
label: qsTr("Recognition period, in seconds")
2323
inputMethodHints: Qt.ImhDigitsOnly // ImhDigitsOnly and ImhFormattedNumbersOnly seem to have no difference
2424
validator: RegExpValidator { regExp: /^\d+$/ }
2525
text: appSettings.recognitionTime
2626
onTextChanged: if (validator.regExp.test(text)) appSettings.recognitionTime = Number(text)
2727

2828
rightItem: IconButton {
29-
onClicked: timeField.text = "10"
29+
onClicked: timeField.text = "8"
3030

3131
width: icon.width
3232
height: icon.height
3333
icon.source: "image://theme/icon-splus-remove"
34-
opacity: timeField.text == "10" ? 0 : 1
34+
opacity: timeField.text == "8" ? 0 : 1
3535
Behavior on opacity { FadeAnimator{} }
3636
}
3737
}

translations/harbour-sshazam-ab.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@
264264
<source>Settings</source>
265265
<translation type="unfinished"></translation>
266266
</message>
267-
<message>
268-
<source>Recognition time</source>
269-
<translation type="unfinished"></translation>
270-
</message>
271267
<message>
272268
<source>Clear history</source>
273269
<translation type="unfinished"></translation>
@@ -413,6 +409,10 @@
413409
<source>History rebuilt</source>
414410
<translation type="unfinished"></translation>
415411
</message>
412+
<message>
413+
<source>Recognition period, in seconds</source>
414+
<translation type="unfinished"></translation>
415+
</message>
416416
</context>
417417
<context>
418418
<name>harbour-sshazam</name>

translations/harbour-sshazam-be.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@
264264
<source>Settings</source>
265265
<translation type="unfinished"></translation>
266266
</message>
267-
<message>
268-
<source>Recognition time</source>
269-
<translation type="unfinished"></translation>
270-
</message>
271267
<message>
272268
<source>Clear history</source>
273269
<translation type="unfinished"></translation>
@@ -413,6 +409,10 @@
413409
<source>History rebuilt</source>
414410
<translation type="unfinished"></translation>
415411
</message>
412+
<message>
413+
<source>Recognition period, in seconds</source>
414+
<translation type="unfinished"></translation>
415+
</message>
416416
</context>
417417
<context>
418418
<name>harbour-sshazam</name>

translations/harbour-sshazam-cs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@
264264
<source>Settings</source>
265265
<translation type="unfinished"></translation>
266266
</message>
267-
<message>
268-
<source>Recognition time</source>
269-
<translation type="unfinished"></translation>
270-
</message>
271267
<message>
272268
<source>Clear history</source>
273269
<translation type="unfinished"></translation>
@@ -413,6 +409,10 @@
413409
<source>History rebuilt</source>
414410
<translation type="unfinished"></translation>
415411
</message>
412+
<message>
413+
<source>Recognition period, in seconds</source>
414+
<translation type="unfinished"></translation>
415+
</message>
416416
</context>
417417
<context>
418418
<name>harbour-sshazam</name>

translations/harbour-sshazam-de.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@
264264
<source>Settings</source>
265265
<translation type="unfinished"></translation>
266266
</message>
267-
<message>
268-
<source>Recognition time</source>
269-
<translation type="unfinished"></translation>
270-
</message>
271267
<message>
272268
<source>Clear history</source>
273269
<translation type="unfinished"></translation>
@@ -413,6 +409,10 @@
413409
<source>History rebuilt</source>
414410
<translation type="unfinished"></translation>
415411
</message>
412+
<message>
413+
<source>Recognition period, in seconds</source>
414+
<translation type="unfinished"></translation>
415+
</message>
416416
</context>
417417
<context>
418418
<name>harbour-sshazam</name>

translations/harbour-sshazam-el.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@
264264
<source>Settings</source>
265265
<translation type="unfinished"></translation>
266266
</message>
267-
<message>
268-
<source>Recognition time</source>
269-
<translation type="unfinished"></translation>
270-
</message>
271267
<message>
272268
<source>Clear history</source>
273269
<translation type="unfinished"></translation>
@@ -413,6 +409,10 @@
413409
<source>History rebuilt</source>
414410
<translation type="unfinished"></translation>
415411
</message>
412+
<message>
413+
<source>Recognition period, in seconds</source>
414+
<translation type="unfinished"></translation>
415+
</message>
416416
</context>
417417
<context>
418418
<name>harbour-sshazam</name>

translations/harbour-sshazam-es.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@
264264
<source>Settings</source>
265265
<translation>Ajustes</translation>
266266
</message>
267-
<message>
268-
<source>Recognition time</source>
269-
<translation>Tiempo de reconocimiento</translation>
270-
</message>
271267
<message>
272268
<source>Clear history</source>
273269
<translation>Limpiar historia</translation>
@@ -413,6 +409,10 @@
413409
<source>History rebuilt</source>
414410
<translation>Reconstruir historia</translation>
415411
</message>
412+
<message>
413+
<source>Recognition period, in seconds</source>
414+
<translation type="unfinished"></translation>
415+
</message>
416416
</context>
417417
<context>
418418
<name>harbour-sshazam</name>

translations/harbour-sshazam-et.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@
264264
<source>Settings</source>
265265
<translation type="unfinished"></translation>
266266
</message>
267-
<message>
268-
<source>Recognition time</source>
269-
<translation type="unfinished"></translation>
270-
</message>
271267
<message>
272268
<source>Clear history</source>
273269
<translation type="unfinished"></translation>
@@ -413,6 +409,10 @@
413409
<source>History rebuilt</source>
414410
<translation type="unfinished"></translation>
415411
</message>
412+
<message>
413+
<source>Recognition period, in seconds</source>
414+
<translation type="unfinished"></translation>
415+
</message>
416416
</context>
417417
<context>
418418
<name>harbour-sshazam</name>

translations/harbour-sshazam-fi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@
264264
<source>Settings</source>
265265
<translation type="unfinished"></translation>
266266
</message>
267-
<message>
268-
<source>Recognition time</source>
269-
<translation type="unfinished"></translation>
270-
</message>
271267
<message>
272268
<source>Clear history</source>
273269
<translation type="unfinished"></translation>
@@ -413,6 +409,10 @@
413409
<source>History rebuilt</source>
414410
<translation type="unfinished"></translation>
415411
</message>
412+
<message>
413+
<source>Recognition period, in seconds</source>
414+
<translation type="unfinished"></translation>
415+
</message>
416416
</context>
417417
<context>
418418
<name>harbour-sshazam</name>

0 commit comments

Comments
 (0)