Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|
@@ -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 ) |
|
|
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.