Skip to content
Permalink
Browse files

Fix old-style connect

  • Loading branch information
m-kuhn committed Jan 5, 2018
1 parent 46177aa commit 3572be9725361f976770a57316a75980e6d2d7cb
Showing with 9 additions and 5 deletions.
  1. +9 −5 src/gui/editorwidgets/qgsrangewidgetwrapper.cpp
@@ -67,7 +67,7 @@ static void setupIntEditor( const QVariant &min, const QVariant &max, const QVar
slider->setMinimum( min.isValid() ? min.toInt() : std::numeric_limits<int>::min() );
slider->setMaximum( max.isValid() ? max.toInt() : std::numeric_limits<int>::max() );
slider->setSingleStep( step.isValid() ? step.toInt() : 1 );
QObject::connect( slider, SIGNAL( valueChanged( int ) ), wrapper, SLOT( valueChanged( int ) ) );
QObject::connect( slider, SIGNAL( valueChanged( int ) ), wrapper, SLOT( emitValueChanged() ) );
}

void QgsRangeWidgetWrapper::initWidget( QWidget *editor )
@@ -144,10 +144,14 @@ void QgsRangeWidgetWrapper::initWidget( QWidget *editor )
( void )field().convertCompatible( min );
( void )field().convertCompatible( max );
( void )field().convertCompatible( step );
if ( mQgsDial ) setupIntEditor( min, max, step, mQgsDial, this );
else if ( mQgsSlider ) setupIntEditor( min, max, step, mQgsSlider, this );
else if ( mDial ) setupIntEditor( min, max, step, mDial, this );
else if ( mSlider ) setupIntEditor( min, max, step, mSlider, this );
if ( mQgsDial )
setupIntEditor( min, max, step, mQgsDial, this );
else if ( mQgsSlider )
setupIntEditor( min, max, step, mQgsSlider, this );
else if ( mDial )
setupIntEditor( min, max, step, mDial, this );
else if ( mSlider )
setupIntEditor( min, max, step, mSlider, this );
}
}

0 comments on commit 3572be9

Please sign in to comment.
You can’t perform that action at this time.