Skip to content

Commit

Permalink
Fix old-style connect
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jan 5, 2018
1 parent 46177aa commit 3572be9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/gui/editorwidgets/qgsrangewidgetwrapper.cpp
Expand Up @@ -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 )
Expand Down Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit 3572be9

Please sign in to comment.