Skip to content
Permalink
Browse files

[rastercalc] Save/restore window geometry for raster calculator

  • Loading branch information
nyalldawson committed Jun 10, 2015
1 parent 559d7bb commit f28755f9afd61378d9e17917bb6f69ab0d929827
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsrastercalcdialog.cpp
@@ -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();
@@ -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

0 comments on commit f28755f

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