mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:19:55 +00:00
31 lines
No EOL
573 B
C++
31 lines
No EOL
573 B
C++
|
|
#include "view.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
#include <QCloseEvent>
|
|
|
|
#include "viewmanager.hpp"
|
|
|
|
void CSVDoc::View::closeEvent (QCloseEvent *event)
|
|
{
|
|
if (!mViewManager.closeRequest (this))
|
|
event->ignore();
|
|
}
|
|
|
|
CSVDoc::View::View (ViewManager& viewManager, CSMDoc::Document *document)
|
|
: mViewManager (viewManager), mDocument (document)
|
|
{
|
|
resize (200, 200);
|
|
setWindowTitle ("New Document");
|
|
}
|
|
|
|
const CSMDoc::Document *CSVDoc::View::getDocument() const
|
|
{
|
|
return mDocument;
|
|
}
|
|
|
|
CSMDoc::Document *CSVDoc::View::getDocument()
|
|
{
|
|
return mDocument;
|
|
} |