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
|
visible: (root.alarm_status_text.length > 0 ) ? true : false
|
||||||
anchors {
|
anchors {
|
||||||
bottom: status.top
|
bottom: status.top
|
||||||
bottomMargin: 20
|
bottomMargin: 10
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
@ -128,7 +128,7 @@ Window {
|
||||||
anchors {
|
anchors {
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
bottomMargin: 50
|
bottomMargin: 30
|
||||||
}
|
}
|
||||||
ConnectButton {
|
ConnectButton {
|
||||||
id: connect_button
|
id: connect_button
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ void RequestWorker::playAlarm()
|
||||||
qDebug() << "Loading player";
|
qDebug() << "Loading player";
|
||||||
player = new QMediaPlayer(this);
|
player = new QMediaPlayer(this);
|
||||||
audioOutput = new QAudioOutput(this);
|
audioOutput = new QAudioOutput(this);
|
||||||
|
player->setLoops(QMediaPlayer::Loops::Infinite);
|
||||||
player->setAudioOutput(audioOutput);
|
player->setAudioOutput(audioOutput);
|
||||||
if (QFile::exists(":/sounds/echo.mp3")) {
|
if (QFile::exists(":/sounds/echo.mp3")) {
|
||||||
qDebug() << "Resource found successfully!";
|
qDebug() << "Resource found successfully!";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue