Skip to content

Commit 9983ba3

Browse files
committed
Restore geometry on style manager dialogs
1 parent b2d20c9 commit 9983ba3

4 files changed

+11
-0
lines changed

src/gui/symbology/qgssmartgroupeditordialog.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include "qgsstyle.h"
1919
#include "qgsapplication.h"
20+
#include "qgsgui.h"
2021

2122
#include <QVariant>
2223
#include <QMessageBox>
@@ -79,6 +80,8 @@ QgsSmartGroupEditorDialog::QgsSmartGroupEditorDialog( QgsStyle *style, QWidget *
7980
, mStyle( style )
8081
{
8182
setupUi( this );
83+
QgsGui::enableAutoGeometryRestore( this );
84+
8285
connect( buttonBox, &QDialogButtonBox::accepted, this, &QgsSmartGroupEditorDialog::buttonBox_accepted );
8386

8487
mCondCount = 0;

src/gui/symbology/qgsstyleexportimportdialog.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "qgslogger.h"
2525
#include "qgsstylegroupselectiondialog.h"
2626
#include "qgsguiutils.h"
27+
#include "qgsgui.h"
2728

2829
#include <QInputDialog>
2930
#include <QCloseEvent>
@@ -39,6 +40,7 @@ QgsStyleExportImportDialog::QgsStyleExportImportDialog( QgsStyle *style, QWidget
3940
, mStyle( style )
4041
{
4142
setupUi( this );
43+
QgsGui::enableAutoGeometryRestore( this );
4244

4345
// additional buttons
4446
QPushButton *pb = nullptr;

src/gui/symbology/qgsstylegroupselectiondialog.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include "qgsstylegroupselectiondialog.h"
1919
#include "qgsstyle.h"
20+
#include "qgsgui.h"
2021

2122
#include <QStandardItemModel>
2223
#include <QStandardItem>
@@ -28,6 +29,8 @@ QgsStyleGroupSelectionDialog::QgsStyleGroupSelectionDialog( QgsStyle *style, QWi
2829
{
2930
setupUi( this );
3031

32+
QgsGui::enableAutoGeometryRestore( this );
33+
3134
QStandardItemModel *model = new QStandardItemModel( groupTree );
3235
groupTree->setModel( model );
3336

src/gui/symbology/qgsstylesavedialog.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include "qgis.h"
2121
#include "qgsstyle.h"
22+
#include "qgsgui.h"
2223

2324
#include <QLineEdit>
2425
#include <QCheckBox>
@@ -28,6 +29,8 @@ QgsStyleSaveDialog::QgsStyleSaveDialog( QWidget *parent, QgsStyle::StyleEntity t
2829
{
2930
setupUi( this );
3031

32+
QgsGui::enableAutoGeometryRestore( this );
33+
3134
if ( type == QgsStyle::SymbolEntity )
3235
{
3336
this->setWindowTitle( tr( "Save New Symbol" ) );

0 commit comments

Comments
 (0)