Skip to content

Commit 1eba8ae

Browse files
committed
enabledAutoGeometryRestore is static
1 parent 5f7f7b6 commit 1eba8ae

16 files changed

+16
-16
lines changed

src/app/layout/qgslayoutimageexportoptionsdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ QgsLayoutImageExportOptionsDialog::QgsLayoutImageExportOptionsDialog( QWidget *p
3333

3434
connect( mClipToContentGroupBox, &QGroupBox::toggled, this, &QgsLayoutImageExportOptionsDialog::clipToContentsToggled );
3535

36-
QgsGui::instance()->enableAutoGeometryRestore( this );
36+
QgsGui::enableAutoGeometryRestore( this );
3737
}
3838

3939
void QgsLayoutImageExportOptionsDialog::setResolution( double resolution )

src/app/layout/qgslayoutmanagerdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ QgsLayoutManagerDialog::QgsLayoutManagerDialog( QWidget *parent, Qt::WindowFlags
4848
connect( mTemplatesDefaultDirBtn, &QPushButton::pressed, this, &QgsLayoutManagerDialog::mTemplatesDefaultDirBtn_pressed );
4949
connect( mTemplatesUserDirBtn, &QPushButton::pressed, this, &QgsLayoutManagerDialog::mTemplatesUserDirBtn_pressed );
5050

51-
QgsGui::instance()->enableAutoGeometryRestore( this );
51+
QgsGui::enableAutoGeometryRestore( this );
5252
mTemplateFileWidget->setStorageMode( QgsFileWidget::GetFile );
5353
mTemplateFileWidget->setFilter( tr( "Layout templates" ) + QStringLiteral( " (*.qpt *.QPT)" ) );
5454
mTemplateFileWidget->setDialogTitle( tr( "Select a Template" ) );

src/app/qgsdxfexportdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ QgsDxfExportDialog::QgsDxfExportDialog( QWidget *parent, Qt::WindowFlags f )
423423
: QDialog( parent, f )
424424
{
425425
setupUi( this );
426-
QgsGui::instance()->enableAutoGeometryRestore( this );
426+
QgsGui::enableAutoGeometryRestore( this );
427427

428428
connect( mVisibilityPresets, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsDxfExportDialog::mVisibilityPresets_currentIndexChanged );
429429
connect( mCrsSelector, &QgsProjectionSelectionWidget::crsChanged, this, &QgsDxfExportDialog::mCrsSelector_crsChanged );

src/app/qgsformannotationdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ QgsFormAnnotationDialog::QgsFormAnnotationDialog( QgsMapCanvasAnnotationItem *it
4848
QObject::connect( deleteButton, &QPushButton::clicked, this, &QgsFormAnnotationDialog::deleteItem );
4949
mButtonBox->addButton( deleteButton, QDialogButtonBox::RejectRole );
5050

51-
QgsGui::instance()->enableAutoGeometryRestore( this );
51+
QgsGui::enableAutoGeometryRestore( this );
5252
}
5353

5454
void QgsFormAnnotationDialog::applySettingsToItem()

src/app/qgshtmlannotationdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ QgsHtmlAnnotationDialog::QgsHtmlAnnotationDialog( QgsMapCanvasAnnotationItem *it
4949
QObject::connect( deleteButton, &QPushButton::clicked, this, &QgsHtmlAnnotationDialog::deleteItem );
5050
mButtonBox->addButton( deleteButton, QDialogButtonBox::RejectRole );
5151

52-
QgsGui::instance()->enableAutoGeometryRestore( this );
52+
QgsGui::enableAutoGeometryRestore( this );
5353
}
5454

5555
void QgsHtmlAnnotationDialog::applySettingsToItem()

src/app/qgsnewspatialitelayerdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ QgsNewSpatialiteLayerDialog::QgsNewSpatialiteLayerDialog( QWidget *parent, Qt::W
4545
: QDialog( parent, fl )
4646
{
4747
setupUi( this );
48-
QgsGui::instance()->enableAutoGeometryRestore( this );
48+
QgsGui::enableAutoGeometryRestore( this );
4949

5050
connect( mAddAttributeButton, &QToolButton::clicked, this, &QgsNewSpatialiteLayerDialog::mAddAttributeButton_clicked );
5151
connect( mRemoveAttributeButton, &QToolButton::clicked, this, &QgsNewSpatialiteLayerDialog::mRemoveAttributeButton_clicked );

src/app/qgsrastercalcdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
QgsRasterCalcDialog::QgsRasterCalcDialog( QgsRasterLayer *rasterLayer, QWidget *parent, Qt::WindowFlags f ): QDialog( parent, f )
3434
{
3535
setupUi( this );
36-
QgsGui::instance()->enableAutoGeometryRestore( this );
36+
QgsGui::enableAutoGeometryRestore( this );
3737

3838
connect( mRasterBandsListWidget, &QListWidget::itemDoubleClicked, this, &QgsRasterCalcDialog::mRasterBandsListWidget_itemDoubleClicked );
3939
connect( mButtonBox, &QDialogButtonBox::accepted, this, &QgsRasterCalcDialog::mButtonBox_accepted );

src/app/qgssvgannotationdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ QgsSvgAnnotationDialog::QgsSvgAnnotationDialog( QgsMapCanvasAnnotationItem *item
5151
QObject::connect( deleteButton, &QPushButton::clicked, this, &QgsSvgAnnotationDialog::deleteItem );
5252
mButtonBox->addButton( deleteButton, QDialogButtonBox::RejectRole );
5353

54-
QgsGui::instance()->enableAutoGeometryRestore( this );
54+
QgsGui::enableAutoGeometryRestore( this );
5555
}
5656

5757
void QgsSvgAnnotationDialog::mBrowseToolButton_clicked()

src/app/qgstextannotationdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ QgsTextAnnotationDialog::QgsTextAnnotationDialog( QgsMapCanvasAnnotationItem *it
4545
mTextEdit->setDocument( mTextDocument.get() );
4646
}
4747

48-
QgsGui::instance()->enableAutoGeometryRestore( this );
48+
QgsGui::enableAutoGeometryRestore( this );
4949

5050
mFontColorButton->setColorDialogTitle( tr( "Select Font Color" ) );
5151
mFontColorButton->setAllowOpacity( true );

src/gui/attributetable/qgsorganizetablecolumnsdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ QgsOrganizeTableColumnsDialog::QgsOrganizeTableColumnsDialog( const QgsVectorLay
4646
: QDialog( parent, flags )
4747
{
4848
setupUi( this );
49-
QgsGui::instance()->enableAutoGeometryRestore( this );
49+
QgsGui::enableAutoGeometryRestore( this );
5050

5151
connect( mShowAllButton, &QAbstractButton::clicked, this, &QgsOrganizeTableColumnsDialog::showAll );
5252
connect( mHideAllButton, &QAbstractButton::clicked, this, &QgsOrganizeTableColumnsDialog::hideAll );

src/gui/layout/qgslayoutnewitempropertiesdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ QgsLayoutItemPropertiesDialog::QgsLayoutItemPropertiesDialog( QWidget *parent, Q
2626
{
2727
setupUi( this );
2828

29-
QgsGui::instance()->enableAutoGeometryRestore( this );
29+
QgsGui::enableAutoGeometryRestore( this );
3030

3131
//make button exclusive
3232
QButtonGroup *buttonGroup = new QButtonGroup( this );

src/gui/ogr/qgsvectorlayersaveasdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ QgsVectorLayerSaveAsDialog::QgsVectorLayerSaveAsDialog( QgsVectorLayer *layer, i
9494
void QgsVectorLayerSaveAsDialog::setup()
9595
{
9696
setupUi( this );
97-
QgsGui::instance()->enableAutoGeometryRestore( this );
97+
QgsGui::enableAutoGeometryRestore( this );
9898

9999
connect( mFormatComboBox, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsVectorLayerSaveAsDialog::mFormatComboBox_currentIndexChanged );
100100
connect( mCrsSelector, &QgsProjectionSelectionWidget::crsChanged, this, &QgsVectorLayerSaveAsDialog::mCrsSelector_crsChanged );

src/gui/processing/qgsprocessingalgorithmdialogbase.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ QgsProcessingAlgorithmDialogBase::QgsProcessingAlgorithmDialogBase( QWidget *par
8787
handleLayout->addStretch();
8888
splitterHandle->setLayout( handleLayout );
8989

90-
QgsGui::instance()->enableAutoGeometryRestore( this );
90+
QgsGui::enableAutoGeometryRestore( this );
9191

9292
QgsSettings settings;
9393
splitter->restoreState( settings.value( QStringLiteral( "/Processing/dialogBaseSplitter" ), QByteArray() ).toByteArray() );

src/gui/qgsexpressionbuilderdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ QgsExpressionBuilderDialog::QgsExpressionBuilderDialog( QgsVectorLayer *layer, c
2323
, mRecentKey( key )
2424
{
2525
setupUi( this );
26-
QgsGui::instance()->enableAutoGeometryRestore( this );
26+
QgsGui::enableAutoGeometryRestore( this );
2727

2828
connect( builder, &QgsExpressionBuilderWidget::parserErrorChanged, this, &QgsExpressionBuilderDialog::syncOkButtonEnabledState );
2929
connect( builder, &QgsExpressionBuilderWidget::evalErrorChanged, this, &QgsExpressionBuilderDialog::syncOkButtonEnabledState );

src/gui/qgsexpressionselectiondialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ QgsExpressionSelectionDialog::QgsExpressionSelectionDialog( QgsVectorLayer *laye
3232
{
3333
setupUi( this );
3434

35-
QgsGui::instance()->enableAutoGeometryRestore( this );
35+
QgsGui::enableAutoGeometryRestore( this );
3636

3737
connect( mActionSelect, &QAction::triggered, this, &QgsExpressionSelectionDialog::mActionSelect_triggered );
3838
connect( mActionAddToSelection, &QAction::triggered, this, &QgsExpressionSelectionDialog::mActionAddToSelection_triggered );

src/gui/qgsnewgeopackagelayerdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ QgsNewGeoPackageLayerDialog::QgsNewGeoPackageLayerDialog( QWidget *parent, Qt::W
5050
: QDialog( parent, fl )
5151
{
5252
setupUi( this );
53-
QgsGui::instance()->enableAutoGeometryRestore( this );
53+
QgsGui::enableAutoGeometryRestore( this );
5454

5555
connect( mAddAttributeButton, &QToolButton::clicked, this, &QgsNewGeoPackageLayerDialog::mAddAttributeButton_clicked );
5656
connect( mRemoveAttributeButton, &QToolButton::clicked, this, &QgsNewGeoPackageLayerDialog::mRemoveAttributeButton_clicked );

0 commit comments

Comments
 (0)