Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_zoneitem.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_zoneitem.cpp
r8127 r9383 14 14 15 15 class QwtPlotZoneItem::PrivateData 16 { 16 { 17 17 public: 18 18 PrivateData(): … … 24 24 brush = QBrush( c ); 25 25 } 26 26 27 27 Qt::Orientation orientation; 28 28 QPen pen; 29 29 QBrush brush; 30 30 QwtInterval interval; 31 }; 31 }; 32 32 33 33 /*! … … 68 68 } 69 69 70 /*! 70 /*! 71 71 Build and assign a pen 72 72 73 73 In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it 74 74 non cosmetic ( see QPen::isCosmetic() ). This method has been introduced 75 75 to hide this incompatibility. 76 76 77 77 \param color Pen color 78 78 \param width Pen width 79 79 \param style Pen style 80 80 81 81 \sa pen(), brush() 82 */ 82 */ 83 83 void QwtPlotZoneItem::setPen( const QColor &color, qreal width, Qt::PenStyle style ) 84 { 84 { 85 85 setPen( QPen( color, width, style ) ); 86 86 } 87 87 88 88 /*! 89 \brief Assign a pen 89 \brief Assign a pen 90 90 91 91 The pen is used to draw the border lines of the zone … … 112 112 } 113 113 114 /*! 115 \brief Assign a brush 116 114 /*! 115 \brief Assign a brush 116 117 117 The brush is used to fill the zone 118 118 … … 141 141 \brief Set the orientation of the zone 142 142 143 A horizontal zone highlights an interval of the y axis, 144 a vertical zone of the x axis. It is unbounded in the 143 A horizontal zone highlights an interval of the y axis, 144 a vertical zone of the x axis. It is unbounded in the 145 145 opposite direction. 146 146 … … 196 196 { 197 197 d_data->interval = interval; 198 itemChanged(); 199 } 200 } 198 itemChanged(); 199 } 200 } 201 201 202 202 /*! … … 207 207 { 208 208 return d_data->interval; 209 } 209 } 210 210 211 211 /*! … … 286 286 } 287 287 288 /*! 288 /*! 289 289 The bounding rectangle is build from the interval in one direction 290 290 and something invalid for the opposite direction.
Note:
See TracChangeset
for help on using the changeset viewer.