Skip to content
Permalink
Browse files

Restore geometry on style manager dialogs

  • Loading branch information
nyalldawson committed Aug 31, 2018
1 parent b2d20c9 commit 9983ba34b4dd9b91022bb8a1208dadcd0de13070
@@ -17,6 +17,7 @@

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

#include <QVariant>
#include <QMessageBox>
@@ -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;
@@ -24,6 +24,7 @@
#include "qgslogger.h"
#include "qgsstylegroupselectiondialog.h"
#include "qgsguiutils.h"
#include "qgsgui.h"

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

// additional buttons
QPushButton *pb = nullptr;
@@ -17,6 +17,7 @@

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

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

QgsGui::enableAutoGeometryRestore( this );

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

@@ -19,6 +19,7 @@

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

#include <QLineEdit>
#include <QCheckBox>
@@ -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" ) );

0 comments on commit 9983ba3

Please sign in to comment.
You can’t perform that action at this time.