Ignore:
Timestamp:
Mar 19, 2021, 9:15:03 AM (3 years ago)
Author:
stoecker
Message:

update to qwt verion 6.1.1 to fix build with newer Qt5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_abstract_slider.cpp

    r8127 r9383  
    1818#endif
    1919
    20 static double qwtAlignToScaleDiv( 
     20static double qwtAlignToScaleDiv(
    2121    const QwtAbstractSlider *slider, double value )
    2222{
     
    2828        return sd.lowerBound();
    2929
    30     if ( tValue == slider->transform( sd.lowerBound() ) )
     30    if ( tValue == slider->transform( sd.upperBound() ) )
    3131        return sd.upperBound();
    3232
     
    107107}
    108108
    109 /*! 
     109/*!
    110110  Set the value to be valid/invalid
    111111
     
    122122
    123123        Q_EMIT valueChanged( d_data->value );
    124     }   
    125 }   
     124    }
     125}
    126126
    127127//! \return True, when the value is invalid
     
    129129{
    130130    return d_data->isValid;
    131 }   
     131}
    132132
    133133/*!
     
    168168  \brief Enables or disables tracking.
    169169
    170   If tracking is enabled, the slider emits the valueChanged() 
    171   signal while the movable part of the slider is being dragged. 
    172   If tracking is disabled, the slider emits the valueChanged() signal 
     170  If tracking is enabled, the slider emits the valueChanged()
     171  signal while the movable part of the slider is being dragged.
     172  If tracking is disabled, the slider emits the valueChanged() signal
    173173  only when the user releases the slider.
    174174
     
    288288   Wheel Event handler
    289289
    290    In/decreases the value by s number of steps. The direction 
     290   In/decreases the value by s number of steps. The direction
    291291   depends on the invertedControls() property.
    292292
     
    459459
    460460  The range of the slider is divided into a number of steps from
    461   which the value increments according to user inputs depend. 
     461  which the value increments according to user inputs depend.
    462462
    463463  The default setting is 100.
     
    485485
    486486  The range of the slider is divided into a number of steps from
    487   which the value increments according to user inputs depend. 
     487  which the value increments according to user inputs depend.
    488488
    489489  \param stepCount Number of steps
     
    495495{
    496496    d_data->singleSteps = stepCount;
    497 }   
     497}
    498498
    499499/*!
     
    504504{
    505505    return d_data->singleSteps;
    506 }   
    507 
    508 /*! 
     506}
     507
     508/*!
    509509  \brief Set the number of steps for a page increment
    510    
     510
    511511  The range of the slider is divided into a number of steps from
    512   which the value increments according to user inputs depend. 
     512  which the value increments according to user inputs depend.
    513513
    514514  \param stepCount Number of steps
     
    541541*/
    542542void QwtAbstractSlider::setStepAlignment( bool on )
    543 {   
     543{
    544544    if ( on != d_data->stepAlignment )
    545545    {
    546546        d_data->stepAlignment = on;
    547547    }
    548 }   
    549    
     548}
     549
    550550/*!
    551551  \return True, when step alignment is enabled
     
    586586
    587587/*!
    588   If wrapping is true stepping up from upperBound() value will 
    589   take you to the minimum() value and vice versa. 
     588  If wrapping is true stepping up from upperBound() value will
     589  take you to the minimum() value and vice versa.
    590590
    591591  \param on En/Disable wrapping
     
    595595{
    596596    d_data->wrapping = on;
    597 }   
     597}
    598598
    599599/*!
    600600  \return True, when wrapping is set
    601601  \sa setWrapping()
    602  */ 
     602 */
    603603bool QwtAbstractSlider::wrapping() const
    604604{
     
    609609  Invert wheel and key events
    610610
    611   Usually scrolling the mouse wheel "up" and using keys like page 
    612   up will increase the slider's value towards its maximum. 
     611  Usually scrolling the mouse wheel "up" and using keys like page
     612  up will increase the slider's value towards its maximum.
    613613  When invertedControls() is enabled the value is scrolled
    614614  towards its minimum.
     
    645645void QwtAbstractSlider::incrementValue( int stepCount )
    646646{
    647     const double value = incrementedValue( 
     647    const double value = incrementedValue(
    648648        d_data->value, stepCount );
    649649
     
    656656
    657657/*!
    658   Increment a value 
    659 
    660   \param value Value 
     658  Increment a value
     659
     660  \param value Value
    661661  \param stepCount Number of steps
    662662
    663663  \return Incremented value
    664664 */
    665 double QwtAbstractSlider::incrementedValue( 
     665double QwtAbstractSlider::incrementedValue(
    666666    double value, int stepCount ) const
    667667{
     
    684684        // we need equidant steps according to
    685685        // paint device coordinates
    686         const double range = transformation->transform( maximum() ) 
     686        const double range = transformation->transform( maximum() )
    687687            - transformation->transform( minimum() );
    688688
     
    691691        double v = transformation->transform( value );
    692692
    693         v = qRound( v / stepSize ) * stepSize; 
     693        v = qRound( v / stepSize ) * stepSize;
    694694        v += stepCount * range / d_data->totalSteps;
    695695
     
    757757        if ( stepSize > 0.0 )
    758758        {
    759             value = lowerBound() + 
     759            value = lowerBound() +
    760760                qRound( ( value - lowerBound() ) / stepSize ) * stepSize;
    761761        }
Note: See TracChangeset for help on using the changeset viewer.