Skip to content

Commit

Permalink
Restore geometry on style manager dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 31, 2018
1 parent b2d20c9 commit 9983ba3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/symbology/qgssmartgroupeditordialog.cpp
Expand Up @@ -17,6 +17,7 @@

#include "qgsstyle.h"
#include "qgsapplication.h"
#include "qgsgui.h"

#include <QVariant>
#include <QMessageBox>
Expand Down Expand Up @@ -79,6 +80,8 @@ QgsSmartGroupEditorDialog::QgsSmartGroupEditorDialog( QgsStyle *style, QWidget *
, mStyle( style )
{
setupUi( this );
QgsGui::enableAutoGeometryRestore( this );

connect( buttonBox, &QDialogButtonBox::accepted, this, &QgsSmartGroupEditorDialog::buttonBox_accepted );

mCondCount = 0;
Expand Down
2 changes: 2 additions & 0 deletions src/gui/symbology/qgsstyleexportimportdialog.cpp
Expand Up @@ -24,6 +24,7 @@
#include "qgslogger.h"
#include "qgsstylegroupselectiondialog.h"
#include "qgsguiutils.h"
#include "qgsgui.h"

#include <QInputDialog>
#include <QCloseEvent>
Expand All @@ -39,6 +40,7 @@ QgsStyleExportImportDialog::QgsStyleExportImportDialog( QgsStyle *style, QWidget
, mStyle( style )
{
setupUi( this );
QgsGui::enableAutoGeometryRestore( this );

// additional buttons
QPushButton *pb = nullptr;
Expand Down
3 changes: 3 additions & 0 deletions src/gui/symbology/qgsstylegroupselectiondialog.cpp
Expand Up @@ -17,6 +17,7 @@

#include "qgsstylegroupselectiondialog.h"
#include "qgsstyle.h"
#include "qgsgui.h"

#include <QStandardItemModel>
#include <QStandardItem>
Expand All @@ -28,6 +29,8 @@ QgsStyleGroupSelectionDialog::QgsStyleGroupSelectionDialog( QgsStyle *style, QWi
{
setupUi( this );

QgsGui::enableAutoGeometryRestore( this );

QStandardItemModel *model = new QStandardItemModel( groupTree );
groupTree->setModel( model );

Expand Down
3 changes: 3 additions & 0 deletions src/gui/symbology/qgsstylesavedialog.cpp
Expand Up @@ -19,6 +19,7 @@

#include "qgis.h"
#include "qgsstyle.h"
#include "qgsgui.h"

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

QgsGui::enableAutoGeometryRestore( this );

if ( type == QgsStyle::SymbolEntity )
{
this->setWindowTitle( tr( "Save New Symbol" ) );
Expand Down

0 comments on commit 9983ba3

Please sign in to comment.