Skip to content

Commit

Permalink
Removed the deprecated methods, will be implemented in Python only
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Jan 8, 2021
1 parent 7708569 commit 6620bb9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 171 deletions.
80 changes: 0 additions & 80 deletions python/core/auto_generated/qgsattributeeditorelement.sip.in
Expand Up @@ -365,86 +365,6 @@ Initializes the relation from the id
virtual QgsAttributeEditorElement *clone( QgsAttributeEditorElement *parent ) const /Factory/;


bool showLinkButton() const /Deprecated/;
%Docstring
Determines if the "link feature" button should be shown

.. versionadded:: 2.18

.. deprecated:: QGIS 3.16
use visibleButtons() instead
%End

void setShowLinkButton( bool showLinkButton ) /Deprecated/;
%Docstring
Determines if the "link feature" button should be shown

.. versionadded:: 2.18

.. deprecated:: QGIS 3.16
use setVisibleButtons() instead
%End

bool showUnlinkButton() const /Deprecated/;
%Docstring
Determines if the "unlink feature" button should be shown

.. versionadded:: 2.18

.. deprecated:: QGIS 3.16
use visibleButtons() instead
%End

void setShowUnlinkButton( bool showUnlinkButton ) /Deprecated/;
%Docstring
Determines if the "unlink feature" button should be shown

.. versionadded:: 2.18

.. deprecated:: QGIS 3.16
use setVisibleButtons() instead
%End

void setShowSaveChildEditsButton( bool showChildEdits ) /Deprecated/;
%Docstring
Determines if the "Save child layer edits" button should be shown

.. versionadded:: 3.14

.. deprecated:: QGIS 3.16
use setVisibleButtons() instead
%End

bool showSaveChildEditsButton() const /Deprecated/;
%Docstring
Determines if the "Save child layer edits" button should be shown

.. versionadded:: 3.14

.. deprecated:: QGIS 3.16
use visibleButtons() instead
%End

void setVisibleButtons( const QgsAttributeEditorRelation::Buttons &buttons ) /Deprecated/;
%Docstring
Defines the buttons which are shown

.. versionadded:: 3.16

.. deprecated:: QGIS 3.18
use setConfig() instead
%End

QgsAttributeEditorRelation::Buttons visibleButtons() const /Deprecated/;
%Docstring
Returns the buttons which are shown

.. versionadded:: 3.16

.. deprecated:: QGIS 3.18
use config() instead
%End

bool forceSuppressFormPopup() const;
%Docstring
Determines the force suppress form popup status.
Expand Down
35 changes: 0 additions & 35 deletions src/core/qgsattributeeditorelement.cpp
Expand Up @@ -163,41 +163,6 @@ QString QgsAttributeEditorRelation::typeIdentifier() const
return QStringLiteral( "attributeEditorRelation" );
}

bool QgsAttributeEditorRelation::showLinkButton() const
{
return mButtons.testFlag( Button::Link );
}

void QgsAttributeEditorRelation::setShowLinkButton( bool showLinkButton )
{
mButtons.setFlag( Button::Link, showLinkButton );
}

bool QgsAttributeEditorRelation::showUnlinkButton() const
{
return mButtons.testFlag( Button::Unlink );
}

void QgsAttributeEditorRelation::setShowUnlinkButton( bool showUnlinkButton )
{
mButtons.setFlag( Button::Unlink, showUnlinkButton );
}

void QgsAttributeEditorRelation::setShowSaveChildEditsButton( bool showSaveChildEdits )
{
mButtons.setFlag( Button::SaveChildEdits, showSaveChildEdits );
}

bool QgsAttributeEditorRelation::showSaveChildEditsButton() const
{
return mButtons.testFlag( Button::SaveChildEdits );
}

void QgsAttributeEditorRelation::setVisibleButtons( const QgsAttributeEditorRelation::Buttons &buttons )
{
mButtons = buttons;
}

void QgsAttributeEditorRelation::setForceSuppressFormPopup( bool forceSuppressFormPopup )
{
mForceSuppressFormPopup = forceSuppressFormPopup;
Expand Down
56 changes: 0 additions & 56 deletions src/core/qgsattributeeditorelement.h
Expand Up @@ -428,62 +428,6 @@ class CORE_EXPORT QgsAttributeEditorRelation : public QgsAttributeEditorElement

QgsAttributeEditorElement *clone( QgsAttributeEditorElement *parent ) const override SIP_FACTORY;

/**
* Determines if the "link feature" button should be shown
* \since QGIS 2.18
* \deprecated since QGIS 3.16 use visibleButtons() instead
*/
Q_DECL_DEPRECATED bool showLinkButton() const SIP_DEPRECATED;

/**
* Determines if the "link feature" button should be shown
* \since QGIS 2.18
* \deprecated since QGIS 3.16 use setVisibleButtons() instead
*/
Q_DECL_DEPRECATED void setShowLinkButton( bool showLinkButton ) SIP_DEPRECATED;

/**
* Determines if the "unlink feature" button should be shown
* \since QGIS 2.18
* \deprecated since QGIS 3.16 use visibleButtons() instead
*/
Q_DECL_DEPRECATED bool showUnlinkButton() const SIP_DEPRECATED;

/**
* Determines if the "unlink feature" button should be shown
* \since QGIS 2.18
* \deprecated since QGIS 3.16 use setVisibleButtons() instead
*/
Q_DECL_DEPRECATED void setShowUnlinkButton( bool showUnlinkButton ) SIP_DEPRECATED;

/**
* Determines if the "Save child layer edits" button should be shown
* \since QGIS 3.14
* \deprecated since QGIS 3.16 use setVisibleButtons() instead
*/
Q_DECL_DEPRECATED void setShowSaveChildEditsButton( bool showChildEdits ) SIP_DEPRECATED;

/**
* Determines if the "Save child layer edits" button should be shown
* \since QGIS 3.14
* \deprecated since QGIS 3.16 use visibleButtons() instead
*/
Q_DECL_DEPRECATED bool showSaveChildEditsButton() const SIP_DEPRECATED;

/**
* Defines the buttons which are shown
* \since QGIS 3.16
* \deprecated since QGIS 3.18 use setConfig() instead
*/
Q_DECL_DEPRECATED void setVisibleButtons( const QgsAttributeEditorRelation::Buttons &buttons ) SIP_DEPRECATED;

/**
* Returns the buttons which are shown
* \since QGIS 3.16
* \deprecated since QGIS 3.18 use config() instead
*/
Q_DECL_DEPRECATED QgsAttributeEditorRelation::Buttons visibleButtons() const SIP_DEPRECATED {return mButtons;}

/**
* Determines the force suppress form popup status.
* \since QGIS 3.16
Expand Down

0 comments on commit 6620bb9

Please sign in to comment.