mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-15 00:04:37 -04:00
Geopackage data items: added tooltip and fix connection storage
This commit is contained in:
parent
f3d25c51c7
commit
420dc829f0
@ -124,6 +124,7 @@ QgsGeoPackageCollectionItem::QgsGeoPackageCollectionItem( QgsDataItem *parent, c
|
|||||||
: QgsDataCollectionItem( parent, name, path )
|
: QgsDataCollectionItem( parent, name, path )
|
||||||
, mPath( path )
|
, mPath( path )
|
||||||
{
|
{
|
||||||
|
mToolTip = path;
|
||||||
mCapabilities |= Collapse;
|
mCapabilities |= Collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -510,9 +511,9 @@ void QgsGeoPackageCollectionItem::addTable()
|
|||||||
|
|
||||||
void QgsGeoPackageCollectionItem::addConnection()
|
void QgsGeoPackageCollectionItem::addConnection()
|
||||||
{
|
{
|
||||||
QgsOgrDbConnection connection( mName, QStringLiteral( "GeoPackage" ) );
|
QgsOgrDbConnection connection( mName, QStringLiteral( "GPKG" ) );
|
||||||
connection.save();
|
connection.save();
|
||||||
emit connectionsChanged();
|
mParent->refreshConnections();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user