Skip to content
Permalink
Browse files

Spelling, sip

  • Loading branch information
nyalldawson committed Mar 10, 2021
1 parent 73613b7 commit def799810d7edda3fe82589a56553b63fde7c68a
@@ -11,7 +11,6 @@




class QgsRuleBased3DRendererMetadata : Qgs3DRendererAbstractMetadata
{
%Docstring
@@ -115,6 +115,13 @@ library object.
typedef QFlags<QgsProviderMetadata::ProviderMetadataCapability> ProviderMetadataCapabilities;


enum ProviderCapability
{
FileBasedUris,
};
typedef QFlags<QgsProviderMetadata::ProviderCapability> ProviderCapabilities;



QgsProviderMetadata( const QString &key, const QString &description, const QString &library = QString() );
%Docstring
@@ -147,6 +154,13 @@ This is used to provide a descriptive list of available data providers.
Returns the provider metadata capabilities.

.. versionadded:: 3.18
%End

virtual QgsProviderMetadata::ProviderCapabilities providerCapabilities() const;
%Docstring
Returns the provider's capabilities.

.. versionadded:: 3.20
%End

QString library() const /Deprecated/;
@@ -417,7 +417,7 @@ void QgsHandleBadLayers::apply()
const QString correctedPath = checkBasepath( layerId, dataInfo.absoluteDir().path(), dataInfo.fileName(), fixedPath );
if ( fixedPath && correctedPath != filePath )
{
// reencode uri for provider
// re-encode uri for provider
providerMap.insert( QStringLiteral( "path" ), correctedPath );
datasource = QgsProviderRegistry::instance()->encodeUri( provider, providerMap );
}
@@ -160,7 +160,7 @@ class CORE_EXPORT QgsProviderMetadata : public QObject
*/
enum ProviderCapability
{
FileBasedUris = 1 << 0, //!< Indicates that the provider can utilise URIs which are based on paths to files (as opposed to database or internet paths)
FileBasedUris = 1 << 0, //!< Indicates that the provider can utilize URIs which are based on paths to files (as opposed to database or internet paths)
};
Q_DECLARE_FLAGS( ProviderCapabilities, ProviderCapability )

0 comments on commit def7998

Please sign in to comment.