Skip to content
Permalink
Browse files

Remember window geometry for raster save dialog

  • Loading branch information
nyalldawson committed Oct 24, 2017
1 parent 9e4518f commit 5f77a48e1058c355bdf88c0d4de4cfc8e63fe688
@@ -39,6 +39,7 @@ class QgsRasterLayerSaveAsDialog: QDialog
const QgsCoordinateReferenceSystem &currentCrs,
QWidget *parent /TransferThis/ = 0,
Qt::WindowFlags f = 0 );
~QgsRasterLayerSaveAsDialog();

Mode mode() const;
%Docstring
@@ -158,6 +158,15 @@ QgsRasterLayerSaveAsDialog::QgsRasterLayerSaveAsDialog( QgsRasterLayer *rasterLa
connect( mExtentGroupBox, &QgsExtentGroupBox::extentChanged, this, &QgsRasterLayerSaveAsDialog::extentChanged );

recalcResolutionSize();

QgsSettings settings;
restoreGeometry( settings.value( QStringLiteral( "Windows/RasterLayerSaveAs/geometry" ) ).toByteArray() );
}

QgsRasterLayerSaveAsDialog::~QgsRasterLayerSaveAsDialog()
{
QgsSettings settings;
settings.setValue( QStringLiteral( "Windows/RasterLayerSaveAs/geometry" ), saveGeometry() );
}

void QgsRasterLayerSaveAsDialog::insertAvailableOutputFormats()
@@ -58,6 +58,7 @@ class GUI_EXPORT QgsRasterLayerSaveAsDialog: public QDialog, private Ui::QgsRast
const QgsCoordinateReferenceSystem &currentCrs,
QWidget *parent SIP_TRANSFERTHIS = nullptr,
Qt::WindowFlags f = 0 );
~QgsRasterLayerSaveAsDialog();

Mode mode() const;
int nColumns() const;

0 comments on commit 5f77a48

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