X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fviewport.h;h=e32ab09cfd10749bc90f2b4d5e7eaf2474bfbb3e;hb=1b5813fe7a82d959976389f7bb41bf731f1ff435;hp=b79526ac2c8d783685aa100b6df8d424dde821fd;hpb=ccdd3ef548ce34f25c6c168598556a350831aa37;p=pulseview.git diff --git a/pv/view/viewport.h b/pv/view/viewport.h index b79526ac..e32ab09c 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;