From d8d6568963d161643c96dc507c799f543d1a0507 Mon Sep 17 00:00:00 2001 From: marios8543 Date: Mon, 21 Apr 2025 19:44:50 +0300 Subject: [PATCH] fix names --- autoapp/UI/MainWindow.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/autoapp/UI/MainWindow.cpp b/autoapp/UI/MainWindow.cpp index 2936a26..311d263 100644 --- a/autoapp/UI/MainWindow.cpp +++ b/autoapp/UI/MainWindow.cpp @@ -31,7 +31,6 @@ namespace autoapp { namespace ui { - MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui_(new Ui::MainWindow), webSocket(new QWebSocket), reconnectTimer(new QTimer(this)), @@ -90,7 +89,7 @@ namespace autoapp } } -void f1x::openauto::autoapp::ui::MainWindow::updateBtNowPlaying() +void autoapp::UI::MainWindow::updateBtNowPlaying() { QDBusInterface manager( "org.bluez", @@ -144,14 +143,14 @@ void f1x::openauto::autoapp::ui::MainWindow::updateBtNowPlaying() if (status == "Playing") { - ui_->stackedWidget->setCurrentIndex(0); - ui_->btSongName->setText(title); - ui_->btArtistName->setText(artist); - ui_->btAlbumName->setText(album); + //ui_->stackedWidget->setCurrentIndex(0); + //ui_->btSongName->setText(title); + //ui_->btArtistName->setText(artist); + //ui_->btAlbumName->setText(album); } else { - ui_->stackedWidget->setCurrentIndex(1); + //ui_->stackedWidget->setCurrentIndex(1); } } break; @@ -159,14 +158,14 @@ void f1x::openauto::autoapp::ui::MainWindow::updateBtNowPlaying() } } -void f1x::openauto::autoapp::ui::MainWindow::connectWebSocket() +void autoapp::UI::MainWindow::connectWebSocket() { QUrl url(QStringLiteral("ws://127.0.0.1:5000")); // Change to your real server qDebug() << "Connecting to WebSocket:" << url; webSocket->open(url); } -void f1x::openauto::autoapp::ui::MainWindow::handleIncomingMessage(const QString &message) +void autoapp::UI::MainWindow::handleIncomingMessage(const QString &message) { // Your custom message processing logic here qDebug() << "[Handler] Processing message:" << message;