Changeset 8127 in ntrip for trunk/BNC/qwtpolar/qwt_polar_item.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/qwtpolar/qwt_polar_item.h

    r4272 r8127  
    1212#include "qwt_polar_global.h"
    1313#include <qwt_text.h>
    14 #include <qwt_legend_itemmanager.h>
     14#include <qwt_legend_data.h>
     15#include <qwt_graphic.h>
    1516#include <qwt_interval.h>
    1617
     
    3435  types of items.
    3536*/
    36 class QWT_POLAR_EXPORT QwtPolarItem: public QwtLegendItemManager
     37class QWT_POLAR_EXPORT QwtPolarItem
    3738{
    3839public:
     
    103104
    104105    void attach( QwtPolarPlot *plot );
    105 
    106     /*!
    107        \brief This method detaches a QwtPolarItem from any QwtPolarPlot it
    108               has been associated with.
    109 
    110        detach() is equivalent to calling attach( NULL )
    111        \sa attach( QwtPolarPlot* plot )
    112     */
    113     void detach() { attach( NULL ); }
     106    void detach();
    114107
    115108    QwtPolarPlot *plot() const;
     
    127120    bool testRenderHint( RenderHint ) const;
    128121
     122    void setRenderThreadCount( uint numThreads );
     123    uint renderThreadCount() const;
     124
    129125    double z() const;
    130126    void setZ( double z );
     
    136132
    137133    virtual void itemChanged();
     134    virtual void legendChanged();
    138135
    139136    /*!
     
    154151    virtual QwtInterval boundingInterval( int scaleId ) const;
    155152
    156     virtual QWidget *legendItem() const;
    157 
    158     virtual void updateLegend( QwtLegend * ) const;
    159153    virtual void updateScaleDiv( const QwtScaleDiv &,
    160154        const QwtScaleDiv &, const QwtInterval & );
    161155
    162156    virtual int marginHint() const;
     157
     158    void setLegendIconSize( const QSize & );
     159    QSize legendIconSize() const;
     160
     161    virtual QList<QwtLegendData> legendData() const;
     162    virtual QwtGraphic legendIcon( int index, const QSizeF  & ) const;
    163163
    164164private:
     
    174174Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPolarItem::RenderHints )
    175175
     176Q_DECLARE_METATYPE( QwtPolarItem * )
     177
    176178#endif
Note: See TracChangeset for help on using the changeset viewer.