Skip to content
Permalink
Browse files
Save geometry of some dialogs
  • Loading branch information
NathanW2 committed May 22, 2014
1 parent 7494003 commit 442a3c1a71d44f9f6dd66832e7428c3e06f637dd
Showing with 10 additions and 0 deletions.
  1. +5 −0 src/app/qgsfieldcalculator.cpp
  2. +5 −0 src/gui/symbology-ng/qgsrulebasedrendererv2widget.cpp
@@ -91,10 +91,15 @@ QgsFieldCalculator::QgsFieldCalculator( QgsVectorLayer* vl )
mOnlyUpdateSelectedCheckBox->setText( tr( "Only update %1 selected features" ).arg( vl->selectedFeaturesIds().size() ) );

builder->loadRecent( "fieldcalc" );

QSettings settings;
restoreGeometry( settings.value( "/Windows/QgsFieldCalculator/geometry" ).toByteArray() );
}

QgsFieldCalculator::~QgsFieldCalculator()
{
QSettings settings;
settings.setValue( "/Windows/QgsFieldCalculator/geometry", saveGeometry() );
}

void QgsFieldCalculator::accept()
@@ -599,11 +599,16 @@ QgsRendererRulePropsDialog::QgsRendererRulePropsDialog( QgsRuleBasedRendererV2::

connect( btnExpressionBuilder, SIGNAL( clicked() ), this, SLOT( buildExpression() ) );
connect( btnTestFilter, SIGNAL( clicked() ), this, SLOT( testFilter() ) );

QSettings settings;
restoreGeometry( settings.value( "/Windows/QgsRendererRulePropsDialog/geometry" ).toByteArray() );
}

QgsRendererRulePropsDialog::~QgsRendererRulePropsDialog()
{
delete mSymbol;
QSettings settings;
settings.setValue( "/Windows/QgsRendererRulePropsDialog/geometry", saveGeometry() );
}

void QgsRendererRulePropsDialog::buildExpression()

0 comments on commit 442a3c1

Please sign in to comment.