Http Version - Alarm now loops and UI status message spacing changed.

This commit is contained in:
unrealdragon 2026-08-12 18:32:45 +05:30
commit 1d999f6c33
2 changed files with 3 additions and 2 deletions

View file

@ -99,7 +99,7 @@ Window {
visible: (root.alarm_status_text.length > 0 ) ? true : false
anchors {
bottom: status.top
bottomMargin: 20
bottomMargin: 10
horizontalCenter: parent.horizontalCenter
}
horizontalAlignment: Text.AlignHCenter
@ -128,7 +128,7 @@ Window {
anchors {
horizontalCenter: parent.horizontalCenter
bottom: parent.bottom
bottomMargin: 50
bottomMargin: 30
}
ConnectButton {
id: connect_button

View file

@ -69,6 +69,7 @@ void RequestWorker::playAlarm()
qDebug() << "Loading player";
player = new QMediaPlayer(this);
audioOutput = new QAudioOutput(this);
player->setLoops(QMediaPlayer::Loops::Infinite);
player->setAudioOutput(audioOutput);
if (QFile::exists(":/sounds/echo.mp3")) {
qDebug() << "Resource found successfully!";