diff --git a/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp b/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp index 666ab2cf151d..c235771549d7 100644 --- a/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp +++ b/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp @@ -307,8 +307,7 @@ QWidget *QgsValueRelationWidgetWrapper::createWidget( QWidget *parent ) void QgsValueRelationWidgetWrapper::initWidget( QWidget *editor ) { - - mComboBox = qobject_cast( editor ); + mComboBox = qobject_cast( editor ); mTableWidget = qobject_cast( editor ); mLineEdit = qobject_cast( editor ); @@ -497,7 +496,7 @@ QVariant::Type QgsValueRelationWidgetWrapper::fkType() const return QVariant::Type::Invalid; } -void QgsValueRelationWidgetWrapper::populate( ) +void QgsValueRelationWidgetWrapper::populate() { // Initialize, note that signals are blocked, to avoid double signals on new features if ( QgsValueRelationFieldFormatter::expressionRequiresFormScope( mExpression ) || diff --git a/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.h b/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.h index 36845d393e3f..8391acea7f56 100644 --- a/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.h +++ b/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.h @@ -206,7 +206,7 @@ class GUI_EXPORT QgsValueRelationWidgetWrapper : public QgsEditorWidgetWrapper //! Sets the values for the widgets, re-creates the cache when required void populate( ); - QgsToolTipComboBox *mComboBox = nullptr; + QComboBox *mComboBox = nullptr; QgsFilteredTableWidget *mTableWidget = nullptr; QLineEdit *mLineEdit = nullptr;