Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_item.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_item.cpp

    r8127 r9383  
    9595
    9696/*!
    97    \brief This method detaches a QwtPlotItem from any 
     97   \brief This method detaches a QwtPlotItem from any
    9898          QwtPlot it has been associated with.
    9999
     
    305305
    306306/*!
    307    On multi core systems rendering of certain plot item 
    308    ( f.e QwtPlotRasterItem ) can be done in parallel in 
     307   On multi core systems rendering of certain plot item
     308   ( f.e QwtPlotRasterItem ) can be done in parallel in
    309309   several threads.
    310310
     
    363363   The default implementation returns an invalid icon
    364364
    365    \param index Index of the legend entry 
     365   \param index Index of the legend entry
    366366                ( usually there is only one )
    367367   \param size Icon size
     
    369369   \sa setLegendIconSize(), legendData()
    370370 */
    371 QwtGraphic QwtPlotItem::legendIcon( 
     371QwtGraphic QwtPlotItem::legendIcon(
    372372    int index, const QSizeF &size ) const
    373373{
     
    389389   \return A filled rectangle
    390390 */
    391 QwtGraphic QwtPlotItem::defaultIcon( 
     391QwtGraphic QwtPlotItem::defaultIcon(
    392392    const QBrush &brush, const QSizeF &size ) const
    393 {   
     393{
    394394    QwtGraphic icon;
    395395    if ( !size.isEmpty() )
    396396    {
    397397        icon.setDefaultSize( size );
    398        
     398
    399399        QRectF r( 0, 0, size.width(), size.height() );
    400        
     400
    401401        QPainter painter( &icon );
    402402        painter.fillRect( r, brush );
    403     }   
    404    
     403    }
     404
    405405    return icon;
    406 }   
     406}
    407407
    408408//! Show the item
     
    558558   \param bottom Returns the bottom margin
    559559
    560    \return The default implementation returns 0 for all margins
     560   The default implementation returns 0 for all margins
    561561
    562562   \sa QwtPlot::getCanvasMarginsHint(), QwtPlot::updateCanvasMargins()
    563563 */
    564 void QwtPlotItem::getCanvasMarginHint( const QwtScaleMap &xMap, 
     564void QwtPlotItem::getCanvasMarginHint( const QwtScaleMap &xMap,
    565565    const QwtScaleMap &yMap, const QRectF &canvasRect,
    566566    double &left, double &top, double &right, double &bottom ) const
     
    583583
    584584   QwtLegendData is basically a list of QVariants that makes it
    585    possible to overload and reimplement legendData() to 
     585   possible to overload and reimplement legendData() to
    586586   return almost any type of information, that is understood
    587587   by the receiver that acts as the legend.
    588588
    589    The default implementation returns one entry with 
     589   The default implementation returns one entry with
    590590   the title() of the item and the legendIcon().
    591591
     
    599599    QwtText label = title();
    600600    label.setRenderFlags( label.renderFlags() & Qt::AlignLeft );
    601            
     601
    602602    QVariant titleValue;
    603603    qVariantSetValue( titleValue, label );
    604604    data.setValue( QwtLegendData::TitleRole, titleValue );
    605        
     605
    606606    const QwtGraphic graphic = legendIcon( 0, legendIconSize() );
    607607    if ( !graphic.isNull() )
    608     {   
     608    {
    609609        QVariant iconValue;
    610610        qVariantSetValue( iconValue, graphic );
    611611        data.setValue( QwtLegendData::IconRole, iconValue );
    612     }   
    613        
     612    }
     613
    614614    QList<QwtLegendData> list;
    615615    list += data;
     
    659659         legendData() and legendIcon()
    660660 */
    661 void QwtPlotItem::updateLegend( const QwtPlotItem *item, 
     661void QwtPlotItem::updateLegend( const QwtPlotItem *item,
    662662    const QList<QwtLegendData> &data )
    663663{
Note: See TracChangeset for help on using the changeset viewer.