Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_interval_symbol.cpp
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_interval_symbol.cpp
r4271 r8127 15 15 #if QT_VERSION < 0x040601 16 16 #define qAtan2(y, x) ::atan2(y, x) 17 #define qFastSin(x) qSin(x) 18 #define qFastCos(x) qCos(x) 17 19 #endif 18 20 … … 149 151 { 150 152 return d_data->brush; 153 } 154 155 /*! 156 Build and assign a pen 157 158 In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it 159 non cosmetic ( see QPen::isCosmetic() ). This method has been introduced 160 to hide this incompatibility. 161 162 \param color Pen color 163 \param width Pen width 164 \param style Pen style 165 166 \sa pen(), brush() 167 */ 168 void QwtIntervalSymbol::setPen( const QColor &color, 169 qreal width, Qt::PenStyle style ) 170 { 171 setPen( QPen( color, width, style ) ); 151 172 } 152 173 … … 232 253 double dw2 = sw / 2.0; 233 254 234 const double cx = q Cos( angle ) * dw2;235 const double sy = q Sin( angle ) * dw2;255 const double cx = qFastCos( angle ) * dw2; 256 const double sy = qFastSin( angle ) * dw2; 236 257 237 258 QwtPainter::drawLine( painter, … … 280 301 double dw2 = sw / 2.0; 281 302 282 const int cx = qCos( angle ) * dw2;283 const int sy = qSin( angle ) * dw2;303 const double cx = qFastCos( angle ) * dw2; 304 const double sy = qFastSin( angle ) * dw2; 284 305 285 306 QPolygonF polygon;
Note:
See TracChangeset
for help on using the changeset viewer.