diff --git a/platform/qt/CMakeLists.txt b/platform/qt/CMakeLists.txt index d0e82e4..a61b074 100644 --- a/platform/qt/CMakeLists.txt +++ b/platform/qt/CMakeLists.txt @@ -13,8 +13,8 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG") endif() -find_package(QT NAMES Qt6 Qt5 COMPONENTS Network REQUIRED) -find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Network REQUIRED) +find_package(QT NAMES Qt6 Qt5 COMPONENTS Network Gui REQUIRED) +find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Network Gui REQUIRED) add_library(${PROJECT_NAME} STATIC qsacnnode_global.h @@ -25,6 +25,6 @@ add_library(${PROJECT_NAME} STATIC universemodel.cpp ) -target_link_libraries(${PROJECT_NAME} PUBLIC Qt${QT_VERSION_MAJOR}::Network ESTA) +target_link_libraries(${PROJECT_NAME} PUBLIC Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Gui ESTA) target_compile_definitions(${PROJECT_NAME} PUBLIC QT_LIBRARY) diff --git a/platform/qt/universemodel.cpp b/platform/qt/universemodel.cpp index a808f60..3738754 100644 --- a/platform/qt/universemodel.cpp +++ b/platform/qt/universemodel.cpp @@ -1,4 +1,5 @@ #include "universemodel.h" +#include /** * @brief UniverseModel::UniverseModel @@ -85,6 +86,9 @@ QVariant UniverseModel::data(const QModelIndex &index, int role) const return universe_->value(slot); break; } + case Qt::FontRole: + return QFont("monospace"); + break; case Qt::TextAlignmentRole: return int(Qt::AlignCenter | Qt::AlignVCenter); break;