mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
add deprecation details
This commit is contained in:
parent
81064f6ac1
commit
1660d726a4
@ -1973,6 +1973,7 @@ Returns a map of field name to attribute alias
|
||||
A set of attributes that are not advertised in WMS requests with QGIS server.
|
||||
|
||||
.. deprecated:: QGIS 3.16
|
||||
use fields().configurationFlags() instead
|
||||
%End
|
||||
|
||||
void setExcludeAttributesWms( const QSet<QString> &att ) /Deprecated/;
|
||||
@ -1980,6 +1981,7 @@ A set of attributes that are not advertised in WMS requests with QGIS server.
|
||||
A set of attributes that are not advertised in WMS requests with QGIS server.
|
||||
|
||||
.. deprecated:: QGIS 3.16
|
||||
use setFieldConfigurationFlag instead
|
||||
%End
|
||||
|
||||
QSet<QString> excludeAttributesWfs() /Deprecated/ const;
|
||||
@ -1987,6 +1989,7 @@ A set of attributes that are not advertised in WMS requests with QGIS server.
|
||||
A set of attributes that are not advertised in WFS requests with QGIS server.
|
||||
|
||||
.. deprecated:: QGIS 3.16
|
||||
use fields().configurationFlags() instead
|
||||
%End
|
||||
|
||||
void setExcludeAttributesWfs( const QSet<QString> &att ) /Deprecated/;
|
||||
@ -1994,6 +1997,7 @@ A set of attributes that are not advertised in WFS requests with QGIS server.
|
||||
A set of attributes that are not advertised in WFS requests with QGIS server.
|
||||
|
||||
.. deprecated:: QGIS 3.16
|
||||
use setFieldConfigurationFlag instead
|
||||
%End
|
||||
|
||||
virtual bool deleteAttribute( int attr );
|
||||
|
@ -2331,8 +2331,8 @@ bool QgsVectorLayer::readSymbology( const QDomNode &layerNode, QString &errorMes
|
||||
// Attributes excluded from WMS and WFS
|
||||
const QList<QPair<QString, QgsField::ConfigurationFlag>> legacyConfig
|
||||
{
|
||||
qMakePair( QStringLiteral( "excludeAttributesWMS" ), QgsField::ConfigurationFlag::Wms ),
|
||||
qMakePair( QStringLiteral( "excludeAttributesWFS" ), QgsField::ConfigurationFlag::Wfs )
|
||||
qMakePair( QStringLiteral( "excludeAttributesWMS" ), QgsField::ConfigurationFlag::ExposeViaWms ),
|
||||
qMakePair( QStringLiteral( "excludeAttributesWFS" ), QgsField::ConfigurationFlag::ExposeViaWfs )
|
||||
};
|
||||
for ( const auto &config : legacyConfig )
|
||||
{
|
||||
|
@ -1839,25 +1839,25 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
|
||||
|
||||
/**
|
||||
* A set of attributes that are not advertised in WMS requests with QGIS server.
|
||||
* \deprecated since QGIS 3.16
|
||||
* \deprecated since QGIS 3.16, use fields().configurationFlags() instead
|
||||
*/
|
||||
Q_DECL_DEPRECATED QSet<QString> excludeAttributesWms() SIP_DEPRECATED const { return mExcludeAttributesWMS; }
|
||||
|
||||
/**
|
||||
* A set of attributes that are not advertised in WMS requests with QGIS server.
|
||||
* \deprecated since QGIS 3.16
|
||||
* \deprecated since QGIS 3.16, use setFieldConfigurationFlag instead
|
||||
*/
|
||||
Q_DECL_DEPRECATED void setExcludeAttributesWms( const QSet<QString> &att ) SIP_DEPRECATED { mExcludeAttributesWMS = att; }
|
||||
|
||||
/**
|
||||
* A set of attributes that are not advertised in WFS requests with QGIS server.
|
||||
* \deprecated since QGIS 3.16
|
||||
* \deprecated since QGIS 3.16, use fields().configurationFlags() instead
|
||||
*/
|
||||
Q_DECL_DEPRECATED QSet<QString> excludeAttributesWfs() SIP_DEPRECATED const { return mExcludeAttributesWFS; }
|
||||
|
||||
/**
|
||||
* A set of attributes that are not advertised in WFS requests with QGIS server.
|
||||
* \deprecated since QGIS 3.16
|
||||
* \deprecated since QGIS 3.16, use setFieldConfigurationFlag instead
|
||||
*/
|
||||
Q_DECL_DEPRECATED void setExcludeAttributesWfs( const QSet<QString> &att ) SIP_DEPRECATED { mExcludeAttributesWFS = att; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user