From 1d999f6c33a805b7b2667e37ac82f5d8172c0656 Mon Sep 17 00:00:00 2001 From: unrealdragon Date: Wed, 12 Aug 2026 18:32:45 +0530 Subject: [PATCH] Http Version - Alarm now loops and UI status message spacing changed. --- Main.qml | 4 ++-- requestworker.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Main.qml b/Main.qml index 1b6c5fc..8c2a35f 100644 --- a/Main.qml +++ b/Main.qml @@ -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 diff --git a/requestworker.cpp b/requestworker.cpp index c02ea40..983c554 100644 --- a/requestworker.cpp +++ b/requestworker.cpp @@ -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!";