File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1135,6 +1135,13 @@ QString QgsDelimitedTextProvider::description() const
1135
1135
return TEXT_PROVIDER_DESCRIPTION;
1136
1136
}
1137
1137
1138
+ QGISEXTERN QVariantMap decodeUri ( const QString &uri )
1139
+ {
1140
+ QVariantMap components;
1141
+ components.insert ( QStringLiteral ( " path" ), QUrl ( uri ).toLocalFile () );
1142
+ return components;
1143
+ }
1144
+
1138
1145
/* *
1139
1146
* Class factory to return a pointer to a newly created
1140
1147
* QgsDelimitedTextProvider object
Original file line number Diff line number Diff line change @@ -5294,6 +5294,16 @@ void QgsSpatiaLiteProvider::invalidateConnections( const QString &connection )
5294
5294
QgsSpatiaLiteConnPool::instance ()->invalidateConnections ( connection );
5295
5295
}
5296
5296
5297
+ QGISEXTERN QVariantMap decodeUri ( const QString &uri )
5298
+ {
5299
+ QgsDataSourceUri dsUri = QgsDataSourceUri ( uri );
5300
+
5301
+ QVariantMap components;
5302
+ components.insert ( QStringLiteral ( " path" ), dsUri.database () );
5303
+ components.insert ( QStringLiteral ( " layerName" ), dsUri.table () );
5304
+ return components;
5305
+ }
5306
+
5297
5307
/* *
5298
5308
* Class factory to return a pointer to a newly created
5299
5309
* QgsSpatiaLiteProvider object
You can’t perform that action at this time.
0 commit comments