mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
intercept close button clicks in loading window
This commit is contained in:
parent
3fdd72f204
commit
e9c2f24faa
2 changed files with 11 additions and 0 deletions
|
@ -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…
Reference in a new issue