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

    r8127 r9383  
    208208  \sa setShape(), setPolygon(), shape()
    209209 */
    210 void QwtPlotShapeItem::setRect( const QRectF &rect ) 
     210void QwtPlotShapeItem::setRect( const QRectF &rect )
    211211{
    212212    QPainterPath path;
     
    263263}
    264264
    265 /*! 
     265/*!
    266266  Build and assign a pen
    267    
     267
    268268  In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it
    269269  non cosmetic ( see QPen::isCosmetic() ). This method has been introduced
    270270  to hide this incompatibility.
    271    
     271
    272272  \param color Pen color
    273273  \param width Pen width
    274274  \param style Pen style
    275    
     275
    276276  \sa pen(), brush()
    277  */ 
     277 */
    278278void QwtPlotShapeItem::setPen( const QColor &color, qreal width, Qt::PenStyle style )
    279 {   
     279{
    280280    setPen( QPen( color, width, style ) );
    281281}
     
    336336  \brief Set the tolerance for the weeding optimization
    337337
    338   After translating the shape into target device coordinate 
     338  After translating the shape into target device coordinate
    339339  ( usually widget geometries ) the painter path can be simplified
    340340  by a point weeding algorithm ( Douglas-Peucker ).
     
    384384        return;
    385385
    386     if ( d_data->pen.style() == Qt::NoPen 
     386    if ( d_data->pen.style() == Qt::NoPen
    387387        && d_data->brush.style() == Qt::NoBrush )
    388388    {
     
    404404    const bool doAlign = QwtPainter::roundingAlignment( painter );
    405405
    406     QPainterPath path = qwtTransformPath( xMap, yMap, 
     406    QPainterPath path = qwtTransformPath( xMap, yMap,
    407407        d_data->shape, doAlign );
    408408
     
    451451  \return A rectangle filled with the color of the brush ( or the pen )
    452452
    453   \param index Index of the legend entry 
     453  \param index Index of the legend entry
    454454                ( usually there is only one )
    455455  \param size Icon size
Note: See TracChangeset for help on using the changeset viewer.