Skip to content

Commit

Permalink
[rastercalc] Save/restore window geometry for raster calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 10, 2015
1 parent 559d7bb commit f28755f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgsrastercalcdialog.cpp
Expand Up @@ -29,6 +29,9 @@ QgsRasterCalcDialog::QgsRasterCalcDialog( QWidget * parent, Qt::WindowFlags f ):
{
setupUi( this );

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

//add supported output formats
insertAvailableOutputFormats();
insertAvailableRasterBands();
Expand All @@ -42,6 +45,8 @@ QgsRasterCalcDialog::QgsRasterCalcDialog( QWidget * parent, Qt::WindowFlags f ):

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

QString QgsRasterCalcDialog::formulaString() const
Expand Down

0 comments on commit f28755f

Please sign in to comment.