Skip to content
Permalink
Browse files

Replace dynamic_cast with qobject_cast

  • Loading branch information
m-kuhn committed Mar 1, 2018
1 parent 8873464 commit 752dc7d5b3176e8467ba9340cad32bb604f0b82a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/editorwidgets/qgsrangewidgetwrapper.cpp
@@ -98,7 +98,7 @@ void QgsRangeWidgetWrapper::initWidget( QWidget *editor )

mDoubleSpinBox->setDecimals( precisionval );

QgsDoubleSpinBox *qgsWidget = dynamic_cast<QgsDoubleSpinBox *>( mDoubleSpinBox );
QgsDoubleSpinBox *qgsWidget = qobject_cast<QgsDoubleSpinBox *>( mDoubleSpinBox );


if ( qgsWidget )
@@ -132,7 +132,7 @@ void QgsRangeWidgetWrapper::initWidget( QWidget *editor )
}
else if ( mIntSpinBox )
{
QgsSpinBox *qgsWidget = dynamic_cast<QgsSpinBox *>( mIntSpinBox );
QgsSpinBox *qgsWidget = qobject_cast<QgsSpinBox *>( mIntSpinBox );
if ( qgsWidget )
qgsWidget->setShowClearButton( allowNull );
if ( allowNull )

0 comments on commit 752dc7d

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