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!";