Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_directpainter.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_directpainter.cpp
r8127 r9383 18 18 #include <qpixmap.h> 19 19 20 static inline void qwtRenderItem( 20 static inline void qwtRenderItem( 21 21 QPainter *painter, const QRect &canvasRect, 22 22 QwtPlotSeriesItem *seriesItem, int from, int to ) … … 110 110 111 111 /*! 112 En/Disables clipping 112 En/Disables clipping 113 113 114 114 \param enable Enables clipping is true, disable it otherwise … … 132 132 \brief Assign a clip region and enable clipping 133 133 134 Depending on the environment setting a proper clip region might improve 134 Depending on the environment setting a proper clip region might improve 135 135 the performance heavily. F.e. on Qt embedded only the clipped part of 136 136 the backing store will be copied to a ( maybe unaccelerated ) frame buffer 137 137 device. 138 138 139 139 \param region Clip region 140 140 \sa clipRegion(), hasClipping(), setClipping() … … 201 201 202 202 bool immediatePaint = true; 203 if ( !canvas->testAttribute( Qt::WA_WState_InPaintEvent ) ) 203 if ( !canvas->testAttribute( Qt::WA_WState_InPaintEvent ) ) 204 204 { 205 205 #if QT_VERSION < 0x050000 … … 221 221 if ( d_data->hasClipping ) 222 222 { 223 d_data->painter.setClipRegion( 223 d_data->painter.setClipRegion( 224 224 QRegion( canvasRect ) & d_data->clipRegion ); 225 225 } … … 295 295 if ( doCopyCache ) 296 296 { 297 QwtPlotCanvas *plotCanvas = 297 QwtPlotCanvas *plotCanvas = 298 298 qobject_cast<QwtPlotCanvas *>( canvas ); 299 299 if ( plotCanvas ) … … 302 302 if ( doCopyCache ) 303 303 { 304 painter.drawPixmap( plotCanvas->rect().topLeft(), 304 painter.drawPixmap( plotCanvas->rect().topLeft(), 305 305 *plotCanvas->backingStore() ); 306 306 }
Note:
See TracChangeset
for help on using the changeset viewer.