mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Merge pull request #403 from matthias-kuhn/expression-build-dialog-save-window-geometry
Save geometry of expression build dialog on close
This commit is contained in:
commit
1e34b2f331
@ -47,11 +47,10 @@ QString QgsExpressionBuilderDialog::expressionText()
|
|||||||
return builder->expressionText();
|
return builder->expressionText();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsExpressionBuilderDialog::closeEvent( QCloseEvent *event )
|
void QgsExpressionBuilderDialog::done( int r )
|
||||||
{
|
{
|
||||||
QDialog::closeEvent( event );
|
QDialog::done( r );
|
||||||
|
|
||||||
// TODO Work out why this is not working yet.
|
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
settings.setValue( "/Windows/ExpressionBuilderDialog/geometry", saveGeometry() );
|
settings.setValue( "/Windows/ExpressionBuilderDialog/geometry", saveGeometry() );
|
||||||
}
|
}
|
||||||
|
@ -42,10 +42,12 @@ class GUI_EXPORT QgsExpressionBuilderDialog : public QDialog, private Ui::QgsExp
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* Handle closing of the window
|
* Is called when the dialog get accepted or rejected
|
||||||
* @param event unused
|
* Used to save geometry
|
||||||
|
*
|
||||||
|
* @param r result value (unused)
|
||||||
*/
|
*/
|
||||||
void closeEvent( QCloseEvent * event );
|
virtual void done( int r );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user