61 #include "QtGLGraphicsView.hh"
69 QtGLGraphicsView::QtGLGraphicsView(QWidget* _parent) :
70 QGraphicsView (_parent)
72 setFocusPolicy(Qt::StrongFocus);
73 setAcceptDrops (
true);
76 void QtGLGraphicsView::resizeEvent(QResizeEvent *_event) {
77 QGraphicsView::resizeEvent(_event);
80 scene()->setSceneRect(QRect(QPoint(0, 0), _event->size()));
81 emit sceneRectChanged (QRectF (0, 0, _event->size().width(),_event->size().height()));