Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_color_map.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_color_map.cpp
r8127 r9383 47 47 a = qAlpha( rgb ); 48 48 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: 51 51 - const int v = int( ( s1.v0 + ratio * s1.vStep ) + 0.5 ); 52 52 … … 346 346 QColor QwtLinearColorMap::color1() const 347 347 { 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 ) ); 349 349 } 350 350 … … 355 355 QColor QwtLinearColorMap::color2() const 356 356 { 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 ) ); 358 358 } 359 359
Note:
See TracChangeset
for help on using the changeset viewer.