feat: zoom and pan in networkView
This commit is contained in:
15
src/gui/network/NetworkGraphicsScene.h
Normal file
15
src/gui/network/NetworkGraphicsScene.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <QGraphicsScene>
|
||||
|
||||
class NetworkGraphicsScene
|
||||
: public QGraphicsScene
|
||||
{
|
||||
public:
|
||||
NetworkGraphicsScene(QGraphicsView *parent = nullptr);
|
||||
private:
|
||||
QGraphicsView* parent_;
|
||||
protected:
|
||||
void wheelEvent(QGraphicsSceneWheelEvent *wheelEvent) override;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user