Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 14, 2020
1 parent 4d91e67 commit b4c21fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp
Expand Up @@ -101,20 +101,25 @@ void QgsRelationWidgetWrapper::widgetValueChanged( const QString &attribute, con

bool QgsRelationWidgetWrapper::showUnlinkButton() const
{
Q_NOWARN_DEPRECATED_PUSH
return mWidget->showUnlinkButton();
Q_NOWARN_DEPRECATED_POP
}

void QgsRelationWidgetWrapper::setShowUnlinkButton( bool showUnlinkButton )
{
Q_NOWARN_DEPRECATED_PUSH
if ( mWidget )
mWidget->setShowUnlinkButton( showUnlinkButton );
Q_NOWARN_DEPRECATED_POP
}


void QgsRelationWidgetWrapper::setShowSaveChildEditsButton( bool showSaveChildEditsButton )
{
Q_NOWARN_DEPRECATED_PUSH
if ( mWidget )
mWidget->setShowSaveChildEditsButton( showSaveChildEditsButton );
Q_NOWARN_DEPRECATED_POP
}

bool QgsRelationWidgetWrapper::showLabel() const
Expand Down

0 comments on commit b4c21fa

Please sign in to comment.