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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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 );

0 commit comments

Comments
 (0)