Http Version - Alarm now loops and UI status message spacing changed.
This commit is contained in:
parent
07bd73bb33
commit
1d999f6c33
2 changed files with 3 additions and 2 deletions
4
Main.qml
4
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
|
||||
|
|
|
|||
|
|
@ -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!";
|
||||
|
|
|
|||
Loading…
Reference in a new issue