intercept close button clicks in loading window

deque
Marc Zinnschlag 11 years ago
parent 3fdd72f204
commit e9c2f24faa

@ -6,9 +6,16 @@
#include <QProgressBar>
#include <QCursor>
#include <QDialogButtonBox>
#include <QCloseEvent>
#include "../../model/doc/document.hpp"
void CSVDoc::LoadingDocument::closeEvent (QCloseEvent *event)
{
event->ignore();
emit cancel (mDocument);
}
CSVDoc::LoadingDocument::LoadingDocument (CSMDoc::Document *document)
: mDocument (document)
{

@ -26,6 +26,10 @@ namespace CSVDoc
QProgressBar *mFileProgress;
QProgressBar *mRecordProgress;
private:
void closeEvent (QCloseEvent *event);
public:
LoadingDocument (CSMDoc::Document *document);

Loading…
Cancel
Save