refactor: separate network class from Qgraphics

This commit is contained in:
parker
2025-06-20 01:51:28 +01:00
parent 2feb6eb5b4
commit be9f3e27ea
6 changed files with 42 additions and 12 deletions

View File

@@ -0,0 +1,18 @@
#include "gui/network/Network.h"
#include "gui/network/NetworkGraphicsView.h"
#include "gui/network/NetworkGraphicsScene.h"
#include <qboxlayout.h>
#include <QPushButton>
Network::Network(QWidget* parent)
{
mainLayout_ = new QVBoxLayout(parent);
this->setLayout(mainLayout_);
NetworkGraphicsScene* scene = new NetworkGraphicsScene();
NetworkGraphicsView* view = new NetworkGraphicsView(parent, scene);
mainLayout_->addWidget(view);
}