minor cleanup

deque
Marc Zinnschlag 11 years ago
parent c2e3709d0f
commit be61ed0f6a

@ -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…
Cancel
Save