From 2c84f2afc5110d5107ec244e38f7fa87d62e0666 Mon Sep 17 00:00:00 2001 From: "michal.szwaj" Date: Sun, 18 Mar 2018 00:04:21 +0100 Subject: [PATCH] Use QApplication --- CMakeLists.txt | 1 + src/btservice/btservice.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cf4f326..7a530db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,5 +92,6 @@ add_executable(btservice ${btservice_source_files}) target_link_libraries(btservice ${Boost_LIBRARIES} ${Qt5Bluetooth_LIBRARIES} + ${Qt5MultimediaWidgets_LIBRARIES} ${PROTOBUF_LIBRARIES} ${AASDK_PROTO_LIBRARIES}) diff --git a/src/btservice/btservice.cpp b/src/btservice/btservice.cpp index bf015c6..3bdc209 100644 --- a/src/btservice/btservice.cpp +++ b/src/btservice/btservice.cpp @@ -16,7 +16,7 @@ * along with openauto. If not, see . */ -#include +#include #include #include #include @@ -25,7 +25,7 @@ namespace btservice = f1x::openauto::btservice; int main(int argc, char* argv[]) { - QCoreApplication qApplication(argc, argv); + QApplication qApplication(argc, argv); const QBluetoothAddress address; const uint16_t portNumber = 5000;