Skip to content

Commit

Permalink
deprecate access to userData from locator
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Oct 19, 2023
1 parent 99d0f8a commit 5433a2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions python/core/auto_generated/locator/qgslocatorfilter.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Returns the ``userData``.

QString description;

QVariant userData;
QVariant userData /Deprecated/;

QIcon icon;

Expand Down Expand Up @@ -363,8 +363,6 @@ QFlags<QgsLocatorFilter::Flag> operator|(QgsLocatorFilter::Flag f1, QFlags<QgsLo





/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
5 changes: 2 additions & 3 deletions src/core/locator/qgslocatorfilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ class CORE_EXPORT QgsLocatorResult

/**
* Custom reference or other data set by the filter.
* \deprecated since QGIS 3.36 using this property can lead to crash, use getUserData() instead
*/
QVariant userData;
QVariant userData SIP_DEPRECATED;

/**
* Icon for result.
Expand Down Expand Up @@ -402,5 +403,3 @@ Q_DECLARE_OPERATORS_FOR_FLAGS( QgsLocatorFilter::Flags )


#endif // QGSLOCATORFILTER_H


0 comments on commit 5433a2d

Please sign in to comment.