X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fviewport.h;h=e2517fa776156f1ef28e6c80e04914658855ba75;hb=49f8ff3fd225c72934eca725eacffb12b6542ebf;hp=b79526ac2c8d783685aa100b6df8d424dde821fd;hpb=ccdd3ef548ce34f25c6c168598556a350831aa37;p=pulseview.git diff --git a/pv/view/viewport.h b/pv/view/viewport.h index b79526ac..e2517fa7 100644 --- a/pv/view/viewport.h +++ b/pv/view/viewport.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the PulseView project. * * Copyright (C) 2012 Joel Holdsworth * @@ -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;