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

    r8127 r9383  
    4747            a = qAlpha( rgb );
    4848
    49             /* 
    50                 when mapping a value to rgb we will have to calcualate: 
     49            /*
     50                when mapping a value to rgb we will have to calcualate:
    5151                   - const int v = int( ( s1.v0 + ratio * s1.vStep ) + 0.5 );
    5252
     
    346346QColor QwtLinearColorMap::color1() const
    347347{
    348     return QColor( d_data->colorStops.rgb( d_data->mode, 0.0 ) );
     348    return QColor::fromRgba( d_data->colorStops.rgb( d_data->mode, 0.0 ) );
    349349}
    350350
     
    355355QColor QwtLinearColorMap::color2() const
    356356{
    357     return QColor( d_data->colorStops.rgb( d_data->mode, 1.0 ) );
     357    return QColor::fromRgba( d_data->colorStops.rgb( d_data->mode, 1.0 ) );
    358358}
    359359
Note: See TracChangeset for help on using the changeset viewer.