refactor: abstract highlight edge
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user