fixed close with x

git-svn-id: http://svn.osgeo.org/qgis/trunk@3051 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
rabla 2005-03-30 16:54:16 +00:00
parent 81b20c5928
commit f860b12188
2 changed files with 17 additions and 1 deletions

View File

@ -15,6 +15,7 @@
***************************************************************************/
#include <iostream>
#include <qdir.h>
#include <qevent.h>
#include <qfile.h>
#include <qfiledialog.h>
#include <qsettings.h>
@ -684,11 +685,22 @@ void QgsGrassEdit::closeEdit(void)
mProvider->closeEdit();
close();
hide();
delete this;
}
void QgsGrassEdit::closeEvent(QCloseEvent *e)
{
#ifdef QGISDEBUG
std::cerr << "QgsGrassEdit::closeEvent()" << std::endl;
#endif
e->accept();
closeEdit();
}
void QgsGrassEdit::catModeChanged ( void )
{
int mode = mCatModeBox->currentItem();

View File

@ -19,6 +19,7 @@
#include <vector>
class QString;
class QCloseEvent;
#include <qpointarray.h>
#include <qcursor.h>
@ -168,6 +169,9 @@ public slots:
// The type of column was changed
void columnTypeChanged ( int row, int col );
// ! Close event
void closeEvent(QCloseEvent *e);
private:
//! Editing is already running
static bool mRunning;