Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_legenditem.h


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_legenditem.h

    r8127 r9383  
    2424  to have more space for the plot canvas.
    2525
    26   In opposite to QwtLegend the legend item is not interactive. 
     26  In opposite to QwtLegend the legend item is not interactive.
    2727  To identify mouse clicks on a legend item an event filter
    2828  needs to be installed catching mouse events ob the plot canvas.
    2929  The geometries of the legend items are available using
    3030  legendGeometries().
    31  
    32   The legend item is aligned to plot canvas according to 
     31
     32  The legend item is aligned to plot canvas according to
    3333  its alignment() flags. It might have a background for the
    3434  complete legend ( usually semi transparent ) or for
    3535  each legend item.
    3636
    37   \note An external QwtLegend with a transparent background 
    38         on top the plot canvas might be another option 
     37  \note An external QwtLegend with a transparent background
     38        on top the plot canvas might be another option
    3939        with a similar effect.
    4040*/
     
    4646      \brief Background mode
    4747
    48       Depending on the mode the complete legend or each item 
     48      Depending on the mode the complete legend or each item
    4949      might have an background.
    5050
     
    8484    void setItemSpacing( int );
    8585    int itemSpacing() const;
    86    
     86
    8787    void setFont( const QFont& );
    8888    QFont font() const;
    8989
    90     void setBorderDistance( int numPixels );
     90    void setBorderDistance( int );
    9191    int borderDistance() const;
    9292
     
    106106    QPen textPen() const;
    107107
    108     virtual void draw( QPainter *p,
     108    virtual void draw( QPainter *,
    109109        const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    110         const QRectF &rect ) const;
     110        const QRectF &canvasRect ) const;
    111111
    112112    void clearLegend();
     
    118118
    119119    virtual QSize minimumSize( const QwtLegendData & ) const;
    120     virtual int heightForWidth( const QwtLegendData &, int w ) const;
     120    virtual int heightForWidth( const QwtLegendData &, int width ) const;
    121121
    122122    QList< const QwtPlotItem * > plotItems() const;
     
    124124
    125125protected:
    126     virtual void drawLegendData( QPainter *painter, 
     126    virtual void drawLegendData( QPainter *painter,
    127127        const QwtPlotItem *, const QwtLegendData &, const QRectF & ) const;
    128128
Note: See TracChangeset for help on using the changeset viewer.