Logo Search packages:      
Sourcecode: kdenlive version File versions

void Gui::KFixedRuler::setRange ( const int  min,
const int  max 

Sets the range of values which are displayed on the timeline.

Definition at line 71 of file kfixedruler.cpp.

References calculateViewport(), endValueChanged(), maxValue(), minValue(), and startValueChanged().

Referenced by setMaxValue(), and setMinValue().

      bool hasChanged = false;

      if (minValue() != min) {
          hasChanged = true;
          emit startValueChanged(min);

      if (maxValue() != max) {
          hasChanged = true;
          emit endValueChanged(max);

      KRuler::setRange(min, max);

      if (hasChanged) {

Generated by  Doxygen 1.6.0   Back to index