diff --git a/CMakeLists.txt b/CMakeLists.txt index 5de24dd78..c579b3935 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,7 +33,7 @@ cmake_minimum_required(VERSION 3.24) # earlier versions of cmake don't handle 'q cmake_policy(SET CMP0071 NEW) # process GENERATED source files in AUTOMOC and AUTOUIC. Added to silence a cmake warning. cmake_policy(SET CMP0079 NEW) -project(venus-gui-v2 LANGUAGES CXX VERSION 0.02.08) +project(venus-gui-v2 LANGUAGES CXX VERSION 0.2.8) add_definitions(-DPROJECT_VERSION_MAJOR=${PROJECT_VERSION_MAJOR} -DPROJECT_VERSION_MINOR=${PROJECT_VERSION_MINOR} -DPROJECT_VERSION_PATCH=${PROJECT_VERSION_PATCH} ) set(CMAKE_INCLUDE_CURRENT_DIR ON) diff --git a/src/main.cpp b/src/main.cpp index 25684f73c..d6c9530c6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -9,13 +9,6 @@ #include "src/backendconnection.h" #include "src/frameratemodel.h" -#include "veutil/qt/ve_qitem.hpp" -#include "veutil/qt/ve_quick_item.hpp" -#include "veutil/qt/ve_qitem_table_model.hpp" -#include "veutil/qt/ve_qitem_sort_table_model.hpp" -#include "veutil/qt/ve_qitem_child_model.hpp" -#include "veutil/qt/firmware_updater_data.hpp" - #if defined(VENUS_WEBASSEMBLY_BUILD) #include #include @@ -219,7 +212,7 @@ void initBackend(bool *enableFpsCounter) int main(int argc, char *argv[]) { - qInfo("Victron gui version: v%d.%d.%d", PROJECT_VERSION_MAJOR, PROJECT_VERSION_MINOR, PROJECT_VERSION_PATCH); + qInfo().nospace() << "Victron gui version: v" << PROJECT_VERSION_MAJOR << "." << PROJECT_VERSION_MINOR << "." << PROJECT_VERSION_PATCH; #if !defined(VENUS_WEBASSEMBLY_BUILD) // The qt vkb behaves in an annoying manner in qt6.5.2 wasm builds (but not other versions).