Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_curve.cpp


Ignore:
Timestamp:
Mar 19, 2021, 9:15:03 AM (3 years ago)
Author:
stoecker
Message:

update to qwt verion 6.1.1 to fix build with newer Qt5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_plot_curve.cpp

    r8127 r9383  
    2525static void qwtUpdateLegendIconSize( QwtPlotCurve *curve )
    2626{
    27     if ( curve->symbol() && 
     27    if ( curve->symbol() &&
    2828        curve->testLegendAttribute( QwtPlotCurve::LegendShowSymbol ) )
    2929    {
     
    6868        symbol( NULL ),
    6969        attributes( 0 ),
    70         paintAttributes( 
     70        paintAttributes(
    7171            QwtPlotCurve::ClipPolygons | QwtPlotCurve::FilterPoints ),
    7272        legendAttributes( 0 )
     
    225225
    226226  The curve will take the ownership of the symbol, hence the previously
    227   set symbol will be delete by setting a new one. If \p symbol is 
     227  set symbol will be delete by setting a new one. If \p symbol is
    228228  \c NULL no symbol will be drawn.
    229229
     
    475475
    476476        if ( !doFit && !doFill )
    477             doIntegers = true; 
     477            doIntegers = true;
    478478    }
    479479#endif
     
    488488    if ( doIntegers )
    489489    {
    490         QPolygon polyline = mapper.toPolygon( 
     490        QPolygon polyline = mapper.toPolygon(
    491491            xMap, yMap, data(), from, to );
    492492
    493493        if ( d_data->paintAttributes & ClipPolygons )
    494494        {
    495             polyline = QwtClipper::clipPolygon( 
     495            polyline = QwtClipper::clipPolygon(
    496496                clipRect.toAlignedRect(), polyline, false );
    497497        }
     
    519519                if ( d_data->paintAttributes & ClipPolygons )
    520520                {
    521                     polyline = QwtClipper::clipPolygonF( 
     521                    polyline = QwtClipper::clipPolygonF(
    522522                        clipRect, polyline, false );
    523523                }
     
    557557void QwtPlotCurve::drawSticks( QPainter *painter,
    558558    const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    559     const QRectF &, int from, int to ) const
    560 {
     559    const QRectF &canvasRect, int from, int to ) const
     560{
     561    Q_UNUSED( canvasRect )
     562
    561563    painter->save();
    562564    painter->setRenderHint( QPainter::Antialiasing, false );
     
    640642        mapper.setFlag( QwtPointMapper::WeedOutPoints, false );
    641643
    642         QPolygonF points = mapper.toPointsF( 
     644        QPolygonF points = mapper.toPointsF(
    643645            xMap, yMap, data(), from, to );
    644646
     
    649651    {
    650652        const QImage image = mapper.toImage( xMap, yMap,
    651             data(), from, to, d_data->pen, 
     653            data(), from, to, d_data->pen,
    652654            painter->testRenderHint( QPainter::Antialiasing ),
    653655            renderThreadCount() );
     
    680682        {
    681683            const QPolygon points = mapper.toPoints(
    682                 xMap, yMap, data(), from, to ); 
     684                xMap, yMap, data(), from, to );
    683685
    684686            QwtPainter::drawPoints( painter, points );
     
    686688        else
    687689        {
    688             const QPolygonF points = mapper.toPointsF( 
     690            const QPolygonF points = mapper.toPointsF(
    689691                xMap, yMap, data(), from, to );
    690692
     
    761763        qreal pw = qMax( qreal( 1.0 ), painter->pen().widthF());
    762764        const QRectF clipRect = canvasRect.adjusted(-pw, -pw, pw, pw);
    763        
    764         const QPolygonF clipped = QwtClipper::clipPolygonF( 
     765
     766        const QPolygonF clipped = QwtClipper::clipPolygonF(
    765767            clipRect, polygon, false );
    766768
     
    884886
    885887/*!
    886   \brief Complete a polygon to be a closed polygon including the 
     888  \brief Complete a polygon to be a closed polygon including the
    887889         area between the original polygon and the baseline.
    888890
     
    902904
    903905    double baseline = d_data->baseline;
    904    
     906
    905907    if ( orientation() == Qt::Vertical )
    906908    {
     
    947949{
    948950    QwtPointMapper mapper;
    949     mapper.setFlag( QwtPointMapper::RoundPoints, 
     951    mapper.setFlag( QwtPointMapper::RoundPoints,
    950952        QwtPainter::roundingAlignment( painter ) );
    951     mapper.setFlag( QwtPointMapper::WeedOutPoints, 
     953    mapper.setFlag( QwtPointMapper::WeedOutPoints,
    952954        testPaintAttribute( QwtPlotCurve::FilterPoints ) );
    953955    mapper.setBoundingRect( canvasRect );
     
    974976
    975977  The interpretation of the baseline depends on the orientation().
    976   With Qt::Horizontal, the baseline is interpreted as a horizontal line
    977   at y = baseline(), with Qt::Vertical, it is interpreted as a vertical
     978  With Qt::Vertical, the baseline is interpreted as a horizontal line
     979  at y = baseline(), with Qt::Horizontal, it is interpreted as a vertical
    978980  line at x = baseline().
    979981
     
    10501052   \return Icon representing the curve on the legend
    10511053
    1052    \param index Index of the legend entry 
     1054   \param index Index of the legend entry
    10531055                ( ignored as there is only one )
    10541056   \param size Icon size
     
    10561058   \sa QwtPlotItem::setLegendIconSize(), QwtPlotItem::legendData()
    10571059 */
    1058 QwtGraphic QwtPlotCurve::legendIcon( int index, 
     1060QwtGraphic QwtPlotCurve::legendIcon( int index,
    10591061    const QSizeF &size ) const
    10601062{
     
    11541156
    11551157/*!
    1156   \brief Initialize the data by pointing to memory blocks which 
     1158  \brief Initialize the data by pointing to memory blocks which
    11571159         are not managed by QwtPlotCurve.
    11581160
    1159   setRawSamples is provided for efficiency. 
     1161  setRawSamples is provided for efficiency.
    11601162  It is important to keep the pointers
    11611163  during the lifetime of the underlying QwtCPointerData class.
     
    11671169  \sa QwtCPointerData
    11681170*/
    1169 void QwtPlotCurve::setRawSamples( 
     1171void QwtPlotCurve::setRawSamples(
    11701172    const double *xData, const double *yData, int size )
    11711173{
     
    11841186  \sa QwtPointArrayData
    11851187*/
    1186 void QwtPlotCurve::setSamples( 
     1188void QwtPlotCurve::setSamples(
    11871189    const double *xData, const double *yData, int size )
    11881190{
Note: See TracChangeset for help on using the changeset viewer.