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_histogram.cpp

    r8127 r9383  
    123123/*!
    124124  Build and assign a pen
    125    
     125
    126126  In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it
    127127  non cosmetic ( see QPen::isCosmetic() ). This method has been introduced
    128128  to hide this incompatibility.
    129    
     129
    130130  \param color Pen color
    131131  \param width Pen width
    132132  \param style Pen style
    133    
     133
    134134  \sa pen(), brush()
    135135 */
    136136void QwtPlotHistogram::setPen( const QColor &color, qreal width, Qt::PenStyle style )
    137 {   
     137{
    138138    setPen( QPen( color, width, style ) );
    139 }   
     139}
    140140
    141141/*!
     
    304304/*!
    305305  Assign a series of samples
    306    
     306
    307307  setSamples() is just a wrapper for setData() without any additional
    308308  value - beside that it is easier to find for the developer.
    309    
     309
    310310  \param data Data
    311311  \warning The item takes ownership of the data object, deleting
    312312           it when its not used anymore.
    313313*/
    314 void QwtPlotHistogram::setSamples( 
     314void QwtPlotHistogram::setSamples(
    315315    QwtSeriesData<QwtIntervalSample> *data )
    316316{
     
    333333void QwtPlotHistogram::drawSeries( QPainter *painter,
    334334    const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    335     const QRectF &, int from, int to ) const
    336 {
     335    const QRectF &canvasRect, int from, int to ) const
     336{
     337    Q_UNUSED( canvasRect )
     338
    337339    if ( !painter || dataSize() <= 0 )
    338340        return;
     
    676678  A plain rectangle without pen using the brush()
    677679
    678   \param index Index of the legend entry 
     680  \param index Index of the legend entry
    679681                ( ignored as there is only one )
    680682  \param size Icon size
    681683  \return A graphic displaying the icon
    682    
     684
    683685  \sa QwtPlotItem::setLegendIconSize(), QwtPlotItem::legendData()
    684686*/
Note: See TracChangeset for help on using the changeset viewer.