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

    r8127 r9383  
    1616
    1717static QRect qwtItemRect( int renderFlags,
    18     const QRectF &rect, const QSizeF &itemSize ) 
     18    const QRectF &rect, const QSizeF &itemSize )
    1919{
    2020    int x;
     
    3333
    3434    int y;
    35     if ( renderFlags & Qt::AlignTop ) 
     35    if ( renderFlags & Qt::AlignTop )
    3636    {
    3737        y = rect.top();
     
    5050
    5151class QwtPlotTextLabel::PrivateData
    52 {   
     52{
    5353public:
    5454    PrivateData():
     
    6161
    6262    QPixmap pixmap;
    63 }; 
     63};
    6464
    6565/*!
     
    102102
    103103/*!
    104   Set the text 
     104  Set the text
    105105
    106106  The label will be aligned to the plot canvas according to
     
    211211            pw = qMax( d_data->text.borderPen().width(), 1 );
    212212
    213         QRect pixmapRect; 
     213        QRect pixmapRect;
    214214        pixmapRect.setLeft( qFloor( rect.left() ) - pw );
    215215        pixmapRect.setTop( qFloor( rect.top() ) - pw );
    216216        pixmapRect.setRight( qCeil( rect.right() ) + pw );
    217217        pixmapRect.setBottom( qCeil( rect.bottom() ) + pw );
    218        
     218
    219219#define QWT_HIGH_DPI 1
    220220
     
    225225        const QSize scaledSize = pixmapRect.size();
    226226#endif
    227         if ( d_data->pixmap.isNull() || 
     227        if ( d_data->pixmap.isNull() ||
    228228            ( scaledSize != d_data->pixmap.size() )  )
    229229        {
     
    234234            d_data->pixmap.fill( Qt::transparent );
    235235
    236             const QRect r( pw, pw, 
     236            const QRect r( pw, pw,
    237237                pixmapRect.width() - 2 * pw, pixmapRect.height() - 2 * pw );
    238238
     
    260260   \sa setMargin(), QwtText::renderFlags(), QwtText::textSize()
    261261 */
    262 QRectF QwtPlotTextLabel::textRect( 
     262QRectF QwtPlotTextLabel::textRect(
    263263    const QRectF &rect, const QSizeF &textSize ) const
    264264{
Note: See TracChangeset for help on using the changeset viewer.