QwtPlotAbstractGLCanvas::QwtPlotAbstractGLCanvas( QWidget *canvasWidget ): QwtPlotAbstractCanvas( canvasWidget ) { d_data = new PrivateData; qwtUpdateContentsRect( frameWidth(), canvasWidget ); d_data->paintAttributes = QwtPlotAbstractGLCanvas::BackingStore; }
/*! Set the frame style \param style The bitwise OR between a shape and a shadow. \sa frameStyle(), QFrame::setFrameStyle(), setFrameShadow(), setFrameShape() */ void QwtPlotAbstractGLCanvas::setFrameStyle( int style ) { if ( style != d_data->frameStyle ) { d_data->frameStyle = style; qwtUpdateContentsRect( frameWidth(), canvasWidget() ); canvasWidget()->update(); } }
/*! Set the frame mid line width The default midline width is 0 pixels. \param width Midline width of the frame \sa midLineWidth(), setLineWidth() */ void QwtPlotAbstractGLCanvas::setMidLineWidth( int width ) { width = qMax( width, 0 ); if ( width != d_data->midLineWidth ) { d_data->midLineWidth = width; qwtUpdateContentsRect( frameWidth(), canvasWidget() ); canvasWidget()->update(); } }
/*! Set the frame style \param style The bitwise OR between a shape and a shadow. \sa frameStyle(), QFrame::setFrameStyle(), setFrameShadow(), setFrameShape() */ void QwtPlotGLCanvas::setFrameStyle( int style ) { if ( style != d_data->frameStyle ) { d_data->frameStyle = style; qwtUpdateContentsRect( this ); update(); } }
/*! Set the frame mid line width The default midline width is 0 pixels. \param width Midline width of the frame \sa midLineWidth(), setLineWidth() */ void QwtPlotGLCanvas::setMidLineWidth( int width ) { width = qMax( width, 0 ); if ( width != d_data->midLineWidth ) { d_data->midLineWidth = width; qwtUpdateContentsRect( this ); update(); } }
/*! \brief Constructor \param plot Parent plot widget \sa QwtPlot::setCanvas() */ QwtPlotGLCanvas::QwtPlotGLCanvas( QwtPlot *plot ): QGLWidget( plot ) { d_data = new PrivateData; #ifndef QT_NO_CURSOR setCursor( Qt::CrossCursor ); #endif setAutoFillBackground( true ); qwtUpdateContentsRect( this ); }