Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_plot_seriesitem.cpp
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_seriesitem.cpp
r4271 r8127 10 10 #include "qwt_plot_seriesitem.h" 11 11 12 class QwtPlot AbstractSeriesItem::PrivateData12 class QwtPlotSeriesItem::PrivateData 13 13 { 14 14 public: … … 25 25 \param title Title of the curve 26 26 */ 27 QwtPlot AbstractSeriesItem::QwtPlotAbstractSeriesItem( const QwtText &title ):27 QwtPlotSeriesItem::QwtPlotSeriesItem( const QwtText &title ): 28 28 QwtPlotItem( title ) 29 29 { 30 30 d_data = new PrivateData(); 31 setItemInterest( QwtPlotItem::ScaleInterest, true ); 31 32 } 32 33 … … 35 36 \param title Title of the curve 36 37 */ 37 QwtPlot AbstractSeriesItem::QwtPlotAbstractSeriesItem( const QString &title ):38 QwtPlotSeriesItem::QwtPlotSeriesItem( const QString &title ): 38 39 QwtPlotItem( QwtText( title ) ) 39 40 { … … 42 43 43 44 //! Destructor 44 QwtPlot AbstractSeriesItem::~QwtPlotAbstractSeriesItem()45 QwtPlotSeriesItem::~QwtPlotSeriesItem() 45 46 { 46 47 delete d_data; … … 56 57 \sa orientation() 57 58 */ 58 void QwtPlot AbstractSeriesItem::setOrientation( Qt::Orientation orientation )59 void QwtPlotSeriesItem::setOrientation( Qt::Orientation orientation ) 59 60 { 60 61 if ( d_data->orientation != orientation ) 61 62 { 62 63 d_data->orientation = orientation; 64 65 legendChanged(); 63 66 itemChanged(); 64 67 } … … 69 72 \sa setOrientation() 70 73 */ 71 Qt::Orientation QwtPlot AbstractSeriesItem::orientation() const74 Qt::Orientation QwtPlotSeriesItem::orientation() const 72 75 { 73 76 return d_data->orientation; … … 80 83 \param xMap Maps x-values into pixel coordinates. 81 84 \param yMap Maps y-values into pixel coordinates. 82 \param canvasRect Contents rect of the canvas85 \param canvasRect Contents rectangle of the canvas 83 86 */ 84 void QwtPlot AbstractSeriesItem::draw( QPainter *painter,87 void QwtPlotSeriesItem::draw( QPainter *painter, 85 88 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 86 89 const QRectF &canvasRect ) const … … 89 92 } 90 93 94 QRectF QwtPlotSeriesItem::boundingRect() const 95 { 96 return dataRect(); 97 } 98 99 void QwtPlotSeriesItem::updateScaleDiv( 100 const QwtScaleDiv &xScaleDiv, const QwtScaleDiv &yScaleDiv ) 101 { 102 const QRectF rect = QRectF( 103 xScaleDiv.lowerBound(), yScaleDiv.lowerBound(), 104 xScaleDiv.range(), yScaleDiv.range() ); 105 106 setRectOfInterest( rect ); 107 } 108 109 void QwtPlotSeriesItem::dataChanged() 110 { 111 itemChanged(); 112 }
Note:
See TracChangeset
for help on using the changeset viewer.