Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
enabledAutoGeometryRestore is static
- Loading branch information
|
@@ -33,7 +33,7 @@ QgsLayoutImageExportOptionsDialog::QgsLayoutImageExportOptionsDialog( QWidget *p |
|
|
|
|
|
connect( mClipToContentGroupBox, &QGroupBox::toggled, this, &QgsLayoutImageExportOptionsDialog::clipToContentsToggled ); |
|
|
|
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
} |
|
|
|
|
|
void QgsLayoutImageExportOptionsDialog::setResolution( double resolution ) |
|
|
|
@@ -48,7 +48,7 @@ QgsLayoutManagerDialog::QgsLayoutManagerDialog( QWidget *parent, Qt::WindowFlags |
|
|
connect( mTemplatesDefaultDirBtn, &QPushButton::pressed, this, &QgsLayoutManagerDialog::mTemplatesDefaultDirBtn_pressed ); |
|
|
connect( mTemplatesUserDirBtn, &QPushButton::pressed, this, &QgsLayoutManagerDialog::mTemplatesUserDirBtn_pressed ); |
|
|
|
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
mTemplateFileWidget->setStorageMode( QgsFileWidget::GetFile ); |
|
|
mTemplateFileWidget->setFilter( tr( "Layout templates" ) + QStringLiteral( " (*.qpt *.QPT)" ) ); |
|
|
mTemplateFileWidget->setDialogTitle( tr( "Select a Template" ) ); |
|
|
|
@@ -423,7 +423,7 @@ QgsDxfExportDialog::QgsDxfExportDialog( QWidget *parent, Qt::WindowFlags f ) |
|
|
: QDialog( parent, f ) |
|
|
{ |
|
|
setupUi( this ); |
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
|
|
|
connect( mVisibilityPresets, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsDxfExportDialog::mVisibilityPresets_currentIndexChanged ); |
|
|
connect( mCrsSelector, &QgsProjectionSelectionWidget::crsChanged, this, &QgsDxfExportDialog::mCrsSelector_crsChanged ); |
|
|
|
@@ -48,7 +48,7 @@ QgsFormAnnotationDialog::QgsFormAnnotationDialog( QgsMapCanvasAnnotationItem *it |
|
|
QObject::connect( deleteButton, &QPushButton::clicked, this, &QgsFormAnnotationDialog::deleteItem ); |
|
|
mButtonBox->addButton( deleteButton, QDialogButtonBox::RejectRole ); |
|
|
|
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
} |
|
|
|
|
|
void QgsFormAnnotationDialog::applySettingsToItem() |
|
|
|
@@ -49,7 +49,7 @@ QgsHtmlAnnotationDialog::QgsHtmlAnnotationDialog( QgsMapCanvasAnnotationItem *it |
|
|
QObject::connect( deleteButton, &QPushButton::clicked, this, &QgsHtmlAnnotationDialog::deleteItem ); |
|
|
mButtonBox->addButton( deleteButton, QDialogButtonBox::RejectRole ); |
|
|
|
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
} |
|
|
|
|
|
void QgsHtmlAnnotationDialog::applySettingsToItem() |
|
|
|
@@ -45,7 +45,7 @@ QgsNewSpatialiteLayerDialog::QgsNewSpatialiteLayerDialog( QWidget *parent, Qt::W |
|
|
: QDialog( parent, fl ) |
|
|
{ |
|
|
setupUi( this ); |
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
|
|
|
connect( mAddAttributeButton, &QToolButton::clicked, this, &QgsNewSpatialiteLayerDialog::mAddAttributeButton_clicked ); |
|
|
connect( mRemoveAttributeButton, &QToolButton::clicked, this, &QgsNewSpatialiteLayerDialog::mRemoveAttributeButton_clicked ); |
|
|
|
@@ -33,7 +33,7 @@ |
|
|
QgsRasterCalcDialog::QgsRasterCalcDialog( QgsRasterLayer *rasterLayer, QWidget *parent, Qt::WindowFlags f ): QDialog( parent, f ) |
|
|
{ |
|
|
setupUi( this ); |
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
|
|
|
connect( mRasterBandsListWidget, &QListWidget::itemDoubleClicked, this, &QgsRasterCalcDialog::mRasterBandsListWidget_itemDoubleClicked ); |
|
|
connect( mButtonBox, &QDialogButtonBox::accepted, this, &QgsRasterCalcDialog::mButtonBox_accepted ); |
|
|
|
@@ -51,7 +51,7 @@ QgsSvgAnnotationDialog::QgsSvgAnnotationDialog( QgsMapCanvasAnnotationItem *item |
|
|
QObject::connect( deleteButton, &QPushButton::clicked, this, &QgsSvgAnnotationDialog::deleteItem ); |
|
|
mButtonBox->addButton( deleteButton, QDialogButtonBox::RejectRole ); |
|
|
|
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
} |
|
|
|
|
|
void QgsSvgAnnotationDialog::mBrowseToolButton_clicked() |
|
|
|
@@ -45,7 +45,7 @@ QgsTextAnnotationDialog::QgsTextAnnotationDialog( QgsMapCanvasAnnotationItem *it |
|
|
mTextEdit->setDocument( mTextDocument.get() ); |
|
|
} |
|
|
|
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
|
|
|
mFontColorButton->setColorDialogTitle( tr( "Select Font Color" ) ); |
|
|
mFontColorButton->setAllowOpacity( true ); |
|
|
|
@@ -46,7 +46,7 @@ QgsOrganizeTableColumnsDialog::QgsOrganizeTableColumnsDialog( const QgsVectorLay |
|
|
: QDialog( parent, flags ) |
|
|
{ |
|
|
setupUi( this ); |
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
|
|
|
connect( mShowAllButton, &QAbstractButton::clicked, this, &QgsOrganizeTableColumnsDialog::showAll ); |
|
|
connect( mHideAllButton, &QAbstractButton::clicked, this, &QgsOrganizeTableColumnsDialog::hideAll ); |
|
|
|
@@ -26,7 +26,7 @@ QgsLayoutItemPropertiesDialog::QgsLayoutItemPropertiesDialog( QWidget *parent, Q |
|
|
{ |
|
|
setupUi( this ); |
|
|
|
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
|
|
|
//make button exclusive |
|
|
QButtonGroup *buttonGroup = new QButtonGroup( this ); |
|
|
|
@@ -94,7 +94,7 @@ QgsVectorLayerSaveAsDialog::QgsVectorLayerSaveAsDialog( QgsVectorLayer *layer, i |
|
|
void QgsVectorLayerSaveAsDialog::setup() |
|
|
{ |
|
|
setupUi( this ); |
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
|
|
|
connect( mFormatComboBox, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsVectorLayerSaveAsDialog::mFormatComboBox_currentIndexChanged ); |
|
|
connect( mCrsSelector, &QgsProjectionSelectionWidget::crsChanged, this, &QgsVectorLayerSaveAsDialog::mCrsSelector_crsChanged ); |
|
|
|
@@ -87,7 +87,7 @@ QgsProcessingAlgorithmDialogBase::QgsProcessingAlgorithmDialogBase( QWidget *par |
|
|
handleLayout->addStretch(); |
|
|
splitterHandle->setLayout( handleLayout ); |
|
|
|
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
|
|
|
QgsSettings settings; |
|
|
splitter->restoreState( settings.value( QStringLiteral( "/Processing/dialogBaseSplitter" ), QByteArray() ).toByteArray() ); |
|
|
|
@@ -23,7 +23,7 @@ QgsExpressionBuilderDialog::QgsExpressionBuilderDialog( QgsVectorLayer *layer, c |
|
|
, mRecentKey( key ) |
|
|
{ |
|
|
setupUi( this ); |
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
|
|
|
connect( builder, &QgsExpressionBuilderWidget::parserErrorChanged, this, &QgsExpressionBuilderDialog::syncOkButtonEnabledState ); |
|
|
connect( builder, &QgsExpressionBuilderWidget::evalErrorChanged, this, &QgsExpressionBuilderDialog::syncOkButtonEnabledState ); |
|
|
|
@@ -32,7 +32,7 @@ QgsExpressionSelectionDialog::QgsExpressionSelectionDialog( QgsVectorLayer *laye |
|
|
{ |
|
|
setupUi( this ); |
|
|
|
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
|
|
|
connect( mActionSelect, &QAction::triggered, this, &QgsExpressionSelectionDialog::mActionSelect_triggered ); |
|
|
connect( mActionAddToSelection, &QAction::triggered, this, &QgsExpressionSelectionDialog::mActionAddToSelection_triggered ); |
|
|
|
@@ -50,7 +50,7 @@ QgsNewGeoPackageLayerDialog::QgsNewGeoPackageLayerDialog( QWidget *parent, Qt::W |
|
|
: QDialog( parent, fl ) |
|
|
{ |
|
|
setupUi( this ); |
|
|
QgsGui::instance()->enableAutoGeometryRestore( this ); |
|
|
QgsGui::enableAutoGeometryRestore( this ); |
|
|
|
|
|
connect( mAddAttributeButton, &QToolButton::clicked, this, &QgsNewGeoPackageLayerDialog::mAddAttributeButton_clicked ); |
|
|
connect( mRemoveAttributeButton, &QToolButton::clicked, this, &QgsNewGeoPackageLayerDialog::mRemoveAttributeButton_clicked ); |
|
|