add bt radio screen
This commit is contained in:
parent
58f7c65875
commit
b563281f78
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user