Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_color_map.h


Ignore:
Timestamp:
May 10, 2017, 3:20:54 PM (7 years ago)
Author:
stoecker
Message:

update qwt and qwtpolar, many QT5 fixes (unfinished)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_color_map.h

    r4271 r8127  
    4141    enum Format
    4242    {
    43         //! The map is intended to map into QRgb values.
     43        //! The map is intended to map into RGB values.
    4444        RGB,
    4545
     
    5757
    5858    /*!
    59        Map a value of a given interval into a rgb value.
     59       Map a value of a given interval into a RGB value.
     60
    6061       \param interval Range for the values
    6162       \param value Value
    62        \return rgb value, corresponding to value
     63       \return RGB value, corresponding to value
    6364    */
    6465    virtual QRgb rgb( const QwtInterval &interval,
     
    6768    /*!
    6869       Map a value of a given interval into a color index
     70
    6971       \param interval Range for the values
    7072       \param value Value
     
    136138
    137139/*!
    138   \brief QwtAlphaColorMap variies the alpha value of a color
     140  \brief QwtAlphaColorMap varies the alpha value of a color
    139141*/
    140142class QWT_EXPORT QwtAlphaColorMap: public QwtColorMap
     
    178180    if ( d_format == RGB )
    179181    {
    180         return QColor( rgb( interval, value ) );
     182        return QColor::fromRgba( rgb( interval, value ) );
    181183    }
    182184    else
Note: See TracChangeset for help on using the changeset viewer.