Skip to content

Commit

Permalink
Save geometry for data defined dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed May 22, 2014
1 parent 83a9c65 commit af5f1aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/symbology-ng/qgsdatadefinedsymboldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ QgsDataDefinedSymbolDialog::QgsDataDefinedSymbolDialog( const QList< DataDefined

for ( int c = 0; c != mTreeWidget->columnCount() - 1; c++ )
mTreeWidget->resizeColumnToContents( c );

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

QgsDataDefinedSymbolDialog::~QgsDataDefinedSymbolDialog()
{

QSettings settings;
settings.setValue( "/Windows/QgsDataDefinedSymbolDialog/geometry", saveGeometry() );
}

QMap< QString, QString > QgsDataDefinedSymbolDialog::dataDefinedProperties() const
Expand Down

0 comments on commit af5f1aa

Please sign in to comment.