add bt radio screen

This commit is contained in:
marios8543 2025-04-26 18:09:55 +03:00
parent 58f7c65875
commit b563281f78

View File

@ -109,6 +109,12 @@ void autoapp::ui::MainWindow::handleIncomingMessage(const QString &message)
ui_->btSongName->setText(btObj["song"].toString());
ui_->btArtistName->setText(btObj["artist"].toString());
ui_->btAlbumName->setText(btObj["album"].toString());
if (btObj.contains("screen")) {
ui_->btRadioScreen->setText(btObj["screen"].toString());
}
else {
ui_->btRadioScreen->setText("");
}
} else if (rootObj.contains("radio")) {
ui_->stackedWidget->setCurrentIndex(1);
QJsonObject radioObj = rootObj["radio"].toObject();