X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2Fwidgets%2FCFGScene.hxx;h=b343381f6e97fc99165af834badf04ff429af9af;hp=6baa618049d54b113930d86f64eeb01e0c94ee4d;hb=9e283567ac56a6433e832d0fa38cf534a0cb8f9f;hpb=6cc8f405b8d89a53f655625fe05506009130fd81 diff --git a/src/gui/widgets/CFGScene.hxx b/src/gui/widgets/CFGScene.hxx index 6baa618..b343381 100644 --- a/src/gui/widgets/CFGScene.hxx +++ b/src/gui/widgets/CFGScene.hxx @@ -8,23 +8,23 @@ class CFGScene : public QGraphicsScene { public: - CFGScene(QWidget * parent = 0) - : QGraphicsScene(parent) {} + CFGScene(QWidget * parent = 0) + : QGraphicsScene(parent) {} - // Take special care when adding a BasicBlock to the scene as we - // need to draw arrows for it later on - void addItem(BasicBlockWidget* block) { - widgets.push_back(block); - QGraphicsScene::addItem(block); - } + // Take special care when adding a BasicBlock to the scene as we + // need to draw arrows for it later on + void addItem(BasicBlockWidget* block) { + widgets.push_back(block); + QGraphicsScene::addItem(block); + } - virtual void drawBackground(QPainter* painter, const QRectF & rect); + virtual void drawBackground(QPainter* painter, const QRectF & rect); private: - std::vector widgets; + std::vector widgets; - void drawLine(QPainter* painter, QPointF from, QPointF to, bool left = true); + void drawLine(QPainter* painter, BasicBlockWidget * from, BasicBlockWidget * to, int8_t side = 0); - void spaceWidgets(); + void spaceWidgets(); }; #endif