Skip to content

Commit

Permalink
improved comment about m_pGLRenderer member in GLWaveformWidgetAbstract
Browse files Browse the repository at this point in the history
  • Loading branch information
m0dB committed Oct 15, 2022
1 parent 6ec20f9 commit 9177ed7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/waveform/widgets/glwaveformwidgetabstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@

QT_FORWARD_DECLARE_CLASS(QString)

/// GLWaveformWidgetAbstract is a WaveformWidgetAbstract & WGLWidget. It may
/// have a GLWaveformRenderer member which requires initialization that must be
/// deferred until Qt calls WGLWidget::initializeGL and cannot be done in the
/// constructor.
/// GLWaveformWidgetAbstract is a WaveformWidgetAbstract & WGLWidget. Its optional
/// member GLWaveformRenderer* m_pGlRenderer can implement a virtual method
/// onInitializeGL, which will be called from GLWaveformRenderer::initializeGL
/// (which overrides QGLWidget::initializeGL). This can be used for initialization
/// that must be deferred until the GL context has been initialized and that can't
/// be done in the constructor.
class GLWaveformWidgetAbstract : public WaveformWidgetAbstract, public WGLWidget {
public:
GLWaveformWidgetAbstract(const QString& group, QWidget* parent)
Expand Down

0 comments on commit 9177ed7

Please sign in to comment.