mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
[browser] Allow GPKG VACUUM from file browser
This commit is contained in:
parent
746654429c
commit
2df58fd8e6
@ -193,6 +193,12 @@ QList<QAction *> QgsGeoPackageCollectionItem::actions( QWidget *parent )
|
||||
connect( actionAddTable, &QAction::triggered, this, &QgsGeoPackageCollectionItem::addTable );
|
||||
lst.append( actionAddTable );
|
||||
|
||||
// Run VACUUM
|
||||
QAction *actionVacuumDb = new QAction( tr( "Compact database (VACUUM)" ), parent );
|
||||
connect( actionVacuumDb, &QAction::triggered, this, &QgsGeoPackageConnectionItem::vacuumGeoPackageDbAction );
|
||||
lst.append( actionVacuumDb );
|
||||
|
||||
|
||||
return lst;
|
||||
}
|
||||
|
||||
@ -375,7 +381,6 @@ QList<QAction *> QgsGeoPackageConnectionItem::actions( QWidget *parent )
|
||||
connect( actionVacuumDb, &QAction::triggered, this, &QgsGeoPackageConnectionItem::vacuumGeoPackageDbAction );
|
||||
lst.append( actionVacuumDb );
|
||||
|
||||
|
||||
return lst;
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ class QgsGeoPackageAbstractLayerItem : public QgsLayerItem
|
||||
*/
|
||||
virtual bool executeDeleteLayer( QString &errCause );
|
||||
#ifdef HAVE_GUI
|
||||
QList<QAction *> actions( QWidget *parent ) override;
|
||||
QList<QAction *> actions( QWidget *menu ) override;
|
||||
public slots:
|
||||
virtual void deleteLayer();
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user