From 7f675b7b76fcbd1be0d8d8a541807fcc1c06913d Mon Sep 17 00:00:00 2001 From: parker Date: Thu, 19 Jun 2025 02:38:49 +0100 Subject: [PATCH] feat: add networkview --- CMakeLists.txt | 1 + src/gui/NetworkView.cpp | 7 +++++++ src/gui/NetworkView.h | 7 +++++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fdbda6..dfdf83d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,7 @@ qt_add_executable(${AppExec} src/gui/main.cpp src/gui/Interface.cpp src/gui/Viewport.cpp + src/gui/NetworkView.cpp ) target_link_libraries(${AppExec} PRIVATE Qt6::Core Qt6::Widgets) diff --git a/src/gui/NetworkView.cpp b/src/gui/NetworkView.cpp index e69de29..83d0eba 100644 --- a/src/gui/NetworkView.cpp +++ b/src/gui/NetworkView.cpp @@ -0,0 +1,7 @@ +#include "gui/NetworkView.h" + +NetworkView::NetworkView(QWidget *parent) +: QGraphicsView(parent) +{ + +} diff --git a/src/gui/NetworkView.h b/src/gui/NetworkView.h index 1208ea1..bde6bc6 100644 --- a/src/gui/NetworkView.h +++ b/src/gui/NetworkView.h @@ -1,8 +1,11 @@ #pragma once #include +#include class NetworkView -: public QWidget +: public QGraphicsView { - +public: + NetworkView(QWidget *parent = nullptr); +private: };