| 762 | */ |
| 763 | |
| 764 | void QwtPlot::drawItems( QPainter* painter, const QRectF& canvasRect, |
| 765 | const QwtScaleMap maps[ QwtAxis::AxisPositions ] ) const |
| 766 | { |
| 767 | const QwtPlotItemList& itmList = itemList(); |
| 768 | for ( QwtPlotItemIterator it = itmList.begin(); |
| 769 | it != itmList.end(); ++it ) |
| 770 | { |
| 771 | QwtPlotItem* item = *it; |
| 772 | if ( item && item->isVisible() ) |
| 773 | { |
| 774 | const QwtAxisId xAxis = item->xAxis(); |
| 775 | const QwtAxisId yAxis = item->yAxis(); |
| 776 | |
| 777 | painter->save(); |
| 778 | |
| 779 | painter->setRenderHint( QPainter::Antialiasing, |
| 780 | item->testRenderHint( QwtPlotItem::RenderAntialiased ) ); |
| 781 | |
| 782 | #if QT_VERSION < 0x050100 |
| 783 | painter->setRenderHint( QPainter::HighQualityAntialiasing, |
| 784 | item->testRenderHint( QwtPlotItem::RenderAntialiased ) ); |
| 785 | #endif |
| 786 | |
| 787 | item->draw( painter, maps[xAxis], maps[yAxis], canvasRect ); |
| 788 | |
| 789 | painter->restore(); |
| 790 | } |
| 791 | } |
| 792 | } |
| 793 | |
| 794 | /*! |
| 795 | \param axisId Axis |
no test coverage detected