21 #include "xnodeconnector.h"
22 #include <QOpenGLWidget>
26 class DECLSPEC_KAME
XQGraph :
public QOpenGLWidget {
29 XQGraph( QWidget* parent = 0, Qt::WindowFlags fl = 0 );
32 void setGraph(
const shared_ptr<XGraph> &);
35 virtual void mousePressEvent ( QMouseEvent*)
override;
36 virtual void mouseReleaseEvent ( QMouseEvent*)
override;
37 virtual void mouseDoubleClickEvent ( QMouseEvent*)
override;
38 virtual void mouseMoveEvent ( QMouseEvent*)
override;
39 virtual void wheelEvent ( QWheelEvent *)
override;
40 virtual void showEvent ( QShowEvent * )
override;
41 virtual void hideEvent ( QHideEvent * )
override;
42 virtual void paintGL()
override;
44 virtual void initializeGL()
override;
45 virtual void resizeGL (
int width,
int height )
override;
48 shared_ptr<XGraph> m_graph;
49 shared_ptr<XQGraphPainter> m_painter;
56 #endif // GRAPHWIDGET_H