Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_null_paintdevice.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_null_paintdevice.cpp
r8127 r9383 10 10 #include "qwt_null_paintdevice.h" 11 11 #include <qpaintengine.h> 12 #include <qpainterpath.h> 12 13 #include <qpixmap.h> 13 14 … … 51 52 virtual void drawPolygon(const QPoint *, int , PolygonDrawMode ); 52 53 53 virtual void drawPixmap(const QRectF &, 54 virtual void drawPixmap(const QRectF &, 54 55 const QPixmap &, const QRectF &); 55 56 56 57 virtual void drawTextItem(const QPointF &, const QTextItem &); 57 58 58 virtual void drawTiledPixmap(const QRectF &, 59 virtual void drawTiledPixmap(const QRectF &, 59 60 const QPixmap &, const QPointF &s); 60 61 61 virtual void drawImage(const QRectF &, 62 virtual void drawImage(const QRectF &, 62 63 const QImage &, const QRectF &, Qt::ImageConversionFlags ); 63 64 … … 65 66 QwtNullPaintDevice *nullDevice(); 66 67 }; 67 68 68 69 QwtNullPaintDevice::PaintEngine::PaintEngine(): 69 70 QPaintEngine( QPaintEngine::AllFeatures ) … … 283 284 } 284 285 285 void QwtNullPaintDevice::PaintEngine::drawPixmap( 286 void QwtNullPaintDevice::PaintEngine::drawPixmap( 286 287 const QRectF &rect, const QPixmap &pm, const QRectF &subRect ) 287 288 { … … 310 311 311 312 void QwtNullPaintDevice::PaintEngine::drawTiledPixmap( 312 const QRectF &rect, const QPixmap &pixmap, 313 const QRectF &rect, const QPixmap &pixmap, 313 314 const QPointF &subRect) 314 315 { … … 321 322 QPaintEngine::drawTiledPixmap( rect, pixmap, subRect ); 322 323 return; 323 } 324 } 324 325 325 326 device->drawTiledPixmap( rect, pixmap, subRect ); … … 327 328 328 329 void QwtNullPaintDevice::PaintEngine::drawImage( 329 const QRectF &rect, const QImage &image, 330 const QRectF &rect, const QImage &image, 330 331 const QRectF &subRect, Qt::ImageConversionFlags flags) 331 332 { … … 338 339 339 340 void QwtNullPaintDevice::PaintEngine::updateState( 340 const QPaintEngineState & state)341 { 342 QwtNullPaintDevice *device = nullDevice(); 343 if ( device == NULL ) 344 return; 345 346 device->updateState( state );341 const QPaintEngineState &engineState) 342 { 343 QwtNullPaintDevice *device = nullDevice(); 344 if ( device == NULL ) 345 return; 346 347 device->updateState( engineState ); 347 348 } 348 349 … … 380 381 } 381 382 382 /*! 383 /*! 383 384 \return Render mode 384 385 \sa setMode() … … 394 395 if ( d_engine == NULL ) 395 396 { 396 QwtNullPaintDevice *that = 397 QwtNullPaintDevice *that = 397 398 const_cast< QwtNullPaintDevice * >( this ); 398 399 … … 403 404 } 404 405 405 /*! 406 /*! 406 407 See QPaintDevice::metric() 407 408 … … 415 416 int value; 416 417 417 switch ( deviceMetric ) 418 switch ( deviceMetric ) 418 419 { 419 420 case PdmWidth: … … 530 531 //! See QPaintEngine::drawPolygon() 531 532 void QwtNullPaintDevice::drawPolygon( 532 const QPointF *points, int pointCount, 533 const QPointF *points, int pointCount, 533 534 QPaintEngine::PolygonDrawMode mode) 534 535 { … … 540 541 //! See QPaintEngine::drawPolygon() 541 542 void QwtNullPaintDevice::drawPolygon( 542 const QPoint *points, int pointCount, 543 const QPoint *points, int pointCount, 543 544 QPaintEngine::PolygonDrawMode mode) 544 545 { … … 549 550 550 551 //! See QPaintEngine::drawPixmap() 551 void QwtNullPaintDevice::drawPixmap( const QRectF &rect, 552 void QwtNullPaintDevice::drawPixmap( const QRectF &rect, 552 553 const QPixmap &pm, const QRectF &subRect ) 553 554 { … … 567 568 //! See QPaintEngine::drawTiledPixmap() 568 569 void QwtNullPaintDevice::drawTiledPixmap( 569 const QRectF &rect, const QPixmap &pixmap, 570 const QRectF &rect, const QPixmap &pixmap, 570 571 const QPointF &subRect) 571 572 { … … 577 578 //! See QPaintEngine::drawImage() 578 579 void QwtNullPaintDevice::drawImage( 579 const QRectF &rect, const QImage &image, 580 const QRectF &rect, const QImage &image, 580 581 const QRectF &subRect, Qt::ImageConversionFlags flags) 581 582 { … … 587 588 588 589 //! See QPaintEngine::updateState() 589 void QwtNullPaintDevice::updateState( 590 void QwtNullPaintDevice::updateState( 590 591 const QPaintEngineState &state ) 591 592 {
Note:
See TracChangeset
for help on using the changeset viewer.