refactor: abstract highlight edge

This commit is contained in:
parker
2025-06-21 23:02:00 +01:00
parent 00adbd08e5
commit cc1976ff6d
2 changed files with 27 additions and 10 deletions

View File

@@ -3,6 +3,7 @@
#include <qgraphicsitem.h>
#include <typeinfo>
#include "gui/network/NetworkGraphicsView.h"
#include "gui/network/NodeEdgeGraphic.h"
#include "gui/network/NetworkGraphicsScene.h"
#include "gui/network/SocketGraphic.h"
#include "gui/network/FloatingEdgeGraphic.h"
@@ -29,6 +30,8 @@ private:
void keyReleaseEvent(QKeyEvent *event) override;
void destroyFloatingEdge();
void highlightEdge(QGraphicsItem* edge, bool state);
template<typename T>
bool isType(QGraphicsItem* item)
{