Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_dial.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_dial.cpp
r8127 r9383 238 238 const QRect cr = contentsRect(); 239 239 240 const doubledim = qMin( cr.width(), cr.height() );240 const int dim = qMin( cr.width(), cr.height() ); 241 241 242 242 QRect inner( 0, 0, dim, dim ); … … 338 338 p.setRenderHint( QPainter::Antialiasing, true ); 339 339 p.translate( -r.topLeft() ); 340 340 341 341 if ( d_data->mode != QwtDial::RotateScale ) 342 342 drawContents( &p ); … … 475 475 \param radius Radius of the scale 476 476 */ 477 void QwtDial::drawScale( QPainter *painter, 477 void QwtDial::drawScale( QPainter *painter, 478 478 const QPointF ¢er, double radius ) const 479 479 { … … 568 568 569 569 The motivation for setting a scale draw is often 570 to overload QwtRoundScaleDraw::label() to return 570 to overload QwtRoundScaleDraw::label() to return 571 571 individual tick labels. 572 572 573 573 \param scaleDraw Scale draw 574 574 \warning The previous scale draw is deleted … … 601 601 maxScaleArc = minScaleArc + 360.0; 602 602 603 if ( ( minScaleArc != d_data->minScaleArc ) || 603 if ( ( minScaleArc != d_data->minScaleArc ) || 604 604 ( maxScaleArc != d_data->maxScaleArc ) ) 605 605 { … … 612 612 } 613 613 614 /*! 614 /*! 615 615 Set the lower limit for the scale arc 616 616 … … 623 623 } 624 624 625 /*! 625 /*! 626 626 \return Lower limit of the scale arc 627 627 \sa setScaleArc() … … 632 632 } 633 633 634 /*! 634 /*! 635 635 Set the upper limit for the scale arc 636 636 … … 643 643 } 644 644 645 /*! 645 /*! 646 646 \return Upper limit of the scale arc 647 647 \sa setScaleArc() … … 691 691 const int d = 6 * sh + 2 * lineWidth(); 692 692 693 QSize hint( d, d ); 693 QSize hint( d, d ); 694 694 if ( !isReadOnly() ) 695 695 hint = hint.expandedTo( QApplication::globalStrut() ); … … 718 718 \param pos Mouse position 719 719 720 \retval True, when the inner circle contains pos 720 \retval True, when the inner circle contains pos 721 721 \sa scrolledTo() 722 722 */ … … 730 730 angle = 360.0 - angle; 731 731 732 double valueAngle = 732 double valueAngle = 733 733 qwtNormalizeDegrees( 90.0 - scaleMap().transform( value() ) ); 734 734 … … 775 775 if ( qAbs( arc ) > 180.0 ) 776 776 { 777 boundedAngle = ( arc > 0 ) 777 boundedAngle = ( arc > 0 ) 778 778 ? scaleMap().p1() : scaleMap().p2(); 779 779 } … … 821 821 break; 822 822 } 823 823 824 824 QwtAbstractSlider::changeEvent( event ); 825 825 } … … 847 847 848 848 /*! 849 Invalidate the internal caches and call 849 Invalidate the internal caches and call 850 850 QwtAbstractSlider::scaleChange() 851 851 */
Note:
See TracChangeset
for help on using the changeset viewer.