mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 08:39:41 +00:00
minor cleanup
This commit is contained in:
parent
c2e3709d0f
commit
be61ed0f6a
3 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||
|
|
|
@ -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)?
|
||||
///
|
||||
|
|
|
@ -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<CSMWorld::IdTable&> (
|
||||
*document.getData().getTableModel (CSMWorld::UniversalId::Type_Scripts));
|
||||
|
|
Loading…
Reference in a new issue