diff --git a/apps/opencs/view/world/scriptedit.cpp b/apps/opencs/view/world/scriptedit.cpp index d91a3898c..89c27970f 100644 --- a/apps/opencs/view/world/scriptedit.cpp +++ b/apps/opencs/view/world/scriptedit.cpp @@ -24,7 +24,7 @@ CSVWorld::ScriptEdit::ChangeLock::~ChangeLock() } -CSVWorld::ScriptEdit::ScriptEdit (QWidget* parent, const CSMDoc::Document& document) : +CSVWorld::ScriptEdit::ScriptEdit (const CSMDoc::Document& document, QWidget* parent) : QTextEdit (parent), mDocument (document), mWhiteListQoutes("^[a-z|_]{1}[a-z|0-9|_]{0,}$", Qt::CaseInsensitive), diff --git a/apps/opencs/view/world/scriptedit.hpp b/apps/opencs/view/world/scriptedit.hpp index 993f4c653..5713f2426 100644 --- a/apps/opencs/view/world/scriptedit.hpp +++ b/apps/opencs/view/world/scriptedit.hpp @@ -48,7 +48,7 @@ namespace CSVWorld public: - ScriptEdit (QWidget* parent, const CSMDoc::Document& document); + ScriptEdit (const CSMDoc::Document& document, QWidget* parent); /// Should changes to the data be ignored (i.e. not cause updated)? /// diff --git a/apps/opencs/view/world/scriptsubview.cpp b/apps/opencs/view/world/scriptsubview.cpp index 57910d250..d2cde1db2 100644 --- a/apps/opencs/view/world/scriptsubview.cpp +++ b/apps/opencs/view/world/scriptsubview.cpp @@ -15,7 +15,7 @@ CSVWorld::ScriptSubView::ScriptSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document) : SubView (id), mDocument (document), mColumn (-1) { - setWidget (mEditor = new ScriptEdit (this, mDocument)); + setWidget (mEditor = new ScriptEdit (mDocument, this)); mModel = &dynamic_cast ( *document.getData().getTableModel (CSMWorld::UniversalId::Type_Scripts));