Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_spectrogram.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_spectrogram.cpp
r8127 r9383 162 162 } 163 163 164 /*! 164 /*! 165 165 Build and assign the default pen for the contour lines 166 166 167 167 In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it 168 168 non cosmetic ( see QPen::isCosmetic() ). This method has been introduced 169 169 to hide this incompatibility. 170 170 171 171 \param color Pen color 172 172 \param width Pen width 173 173 \param style Pen style 174 174 175 175 \sa pen(), brush() 176 */ 177 void QwtPlotSpectrogram::setDefaultContourPen( 176 */ 177 void QwtPlotSpectrogram::setDefaultContourPen( 178 178 const QColor &color, qreal width, Qt::PenStyle style ) 179 { 179 { 180 180 setDefaultContourPen( QPen( color, width, style ) ); 181 181 } … … 363 363 364 364 The geometry of a pixel is used to calculated the resolution and 365 alignment of the rendered image. 365 alignment of the rendered image. 366 366 367 367 The default implementation returns data()->pixelHint( rect ); … … 372 372 \return Bounding rectangle of a pixel 373 373 374 \sa QwtPlotRasterItem::pixelHint(), QwtRasterData::pixelHint(), 374 \sa QwtPlotRasterItem::pixelHint(), QwtRasterData::pixelHint(), 375 375 render(), renderImage() 376 376 */ … … 403 403 const QRectF &area, const QSize &imageSize ) const 404 404 { 405 if ( imageSize.isEmpty() || d_data->data == NULL 405 if ( imageSize.isEmpty() || d_data->data == NULL 406 406 || d_data->colorMap == NULL ) 407 407 { … … 424 424 425 425 #if DEBUG_RENDER 426 427 426 QElapsedTimer time; 427 time.start(); 428 428 #endif 429 429 … … 547 547 \sa drawContourLines(), QwtRasterData::contourLines() 548 548 */ 549 QSize QwtPlotSpectrogram::contourRasterSize( 549 QSize QwtPlotSpectrogram::contourRasterSize( 550 550 const QRectF &area, const QRect &rect ) const 551 551 {
Note:
See TracChangeset
for help on using the changeset viewer.