Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_plot_canvas.h
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_canvas.h
r4271 r8127 13 13 #include "qwt_global.h" 14 14 #include <qframe.h> 15 #include <qpen.h>16 15 #include <qpainterpath.h> 17 #include <qbitmap.h>18 16 19 17 class QwtPlot; … … 22 20 /*! 23 21 \brief Canvas of a QwtPlot. 24 \sa QwtPlot 22 23 Canvas is the widget where all plot items are displayed 24 25 \sa QwtPlot::setCanvas(), QwtPlotGLCanvas 25 26 */ 26 27 class QWT_EXPORT QwtPlotCanvas : public QFrame 27 28 { 28 29 Q_OBJECT 30 31 Q_PROPERTY( double borderRadius READ borderRadius WRITE setBorderRadius ) 29 32 30 33 public: … … 44 47 45 48 Using a backing store might improve the performance 46 significantly, when workin with widget overlays ( like rubberbands ).49 significantly, when working with widget overlays ( like rubber bands ). 47 50 Disabling the cache might improve the performance for 48 51 incremental paints (using QwtPlotDirectPainter ). … … 78 81 79 82 When HackStyledBackground is enabled the plot canvas tries 80 to sep erate the background from the background border81 by reverse eng eneering to paint the background before and83 to separate the background from the background border 84 by reverse engineering to paint the background before and 82 85 the border after the plot items. In this order the border 83 gets p refectly antialiased and you can avoid some pixel86 gets perfectly antialiased and you can avoid some pixel 84 87 artifacts in the corners. 85 88 */ … … 100 103 /*! 101 104 \brief Focus indicator 102 103 - NoFocusIndicator\n 104 Don't paint a focus indicator 105 106 - CanvasFocusIndicator\n 107 The focus is related to the complete canvas. 108 Paint the focus indicator using paintFocus() 109 110 - ItemFocusIndicator\n 111 The focus is related to an item (curve, point, ...) on 112 the canvas. It is up to the application to display a 113 focus indication using f.e. highlighting. 114 115 \sa setFocusIndicator(), focusIndicator(), paintFocus() 105 The default setting is NoFocusIndicator 106 \sa setFocusIndicator(), focusIndicator(), drawFocusIndicator() 116 107 */ 117 108 118 109 enum FocusIndicator 119 110 { 111 //! Don't paint a focus indicator 120 112 NoFocusIndicator, 113 114 /*! 115 The focus is related to the complete canvas. 116 Paint the focus indicator using drawFocusIndicator() 117 */ 121 118 CanvasFocusIndicator, 119 120 /*! 121 The focus is related to an item (curve, point, ...) on 122 the canvas. It is up to the application to display a 123 focus indication using f.e. highlighting. 124 */ 122 125 ItemFocusIndicator 123 126 }; 124 127 125 explicit QwtPlotCanvas( QwtPlot * );128 explicit QwtPlotCanvas( QwtPlot * = NULL ); 126 129 virtual ~QwtPlotCanvas(); 127 130 … … 135 138 double borderRadius() const; 136 139 137 QPainterPath borderPath( const QRect &rect ) const;138 QBitmap borderMask( const QSize & ) const;139 140 140 void setPaintAttribute( PaintAttribute, bool on = true ); 141 141 bool testPaintAttribute( PaintAttribute ) const; … … 144 144 void invalidateBackingStore(); 145 145 146 virtual bool event( QEvent * ); 147 148 Q_INVOKABLE QPainterPath borderPath( const QRect & ) const; 149 150 public Q_SLOTS: 146 151 void replot(); 147 148 virtual bool event( QEvent * );149 152 150 153 protected:
Note:
See TracChangeset
for help on using the changeset viewer.