mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
intercept close button clicks in loading window
This commit is contained in:
parent
3fdd72f204
commit
e9c2f24faa
@ -6,9 +6,16 @@
|
|||||||
#include <QProgressBar>
|
#include <QProgressBar>
|
||||||
#include <QCursor>
|
#include <QCursor>
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
|
#include <QCloseEvent>
|
||||||
|
|
||||||
#include "../../model/doc/document.hpp"
|
#include "../../model/doc/document.hpp"
|
||||||
|
|
||||||
|
void CSVDoc::LoadingDocument::closeEvent (QCloseEvent *event)
|
||||||
|
{
|
||||||
|
event->ignore();
|
||||||
|
emit cancel (mDocument);
|
||||||
|
}
|
||||||
|
|
||||||
CSVDoc::LoadingDocument::LoadingDocument (CSMDoc::Document *document)
|
CSVDoc::LoadingDocument::LoadingDocument (CSMDoc::Document *document)
|
||||||
: mDocument (document)
|
: mDocument (document)
|
||||||
{
|
{
|
||||||
|
@ -26,6 +26,10 @@ namespace CSVDoc
|
|||||||
QProgressBar *mFileProgress;
|
QProgressBar *mFileProgress;
|
||||||
QProgressBar *mRecordProgress;
|
QProgressBar *mRecordProgress;
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
void closeEvent (QCloseEvent *event);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
LoadingDocument (CSMDoc::Document *document);
|
LoadingDocument (CSMDoc::Document *document);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user