X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fviewport.h;h=e32ab09cfd10749bc90f2b4d5e7eaf2474bfbb3e;hb=64b60583ff73db2bd9458817276687b030fe48e1;hp=b79526ac2c8d783685aa100b6df8d424dde821fd;hpb=ccdd3ef548ce34f25c6c168598556a350831aa37;p=pulseview.git diff --git a/pv/view/viewport.h b/pv/view/viewport.h index b79526a..e32ab09 100644 --- a/pv/view/viewport.h +++ b/pv/view/viewport.h @@ -21,8 +21,8 @@ #ifndef PV_VIEW_VIEWPORT_H #define PV_VIEW_VIEWPORT_H -#include #include +#include class QPainter; class QPaintEvent; @@ -33,7 +33,7 @@ namespace view { class View; -class Viewport : public QGLWidget +class Viewport : public QWidget { Q_OBJECT @@ -43,10 +43,6 @@ public: int get_total_height() const; protected: - void initializeGL(); - - void resizeGL(int width, int height); - void paintEvent(QPaintEvent *event); private: @@ -55,9 +51,6 @@ private: void mouseReleaseEvent(QMouseEvent *event); void wheelEvent(QWheelEvent *event); -private: - void setup_viewport(int width, int height); - private: View &_view;