From 2f08d443136a440ea3b176bfede050ac903f1161 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sun, 17 Aug 2014 15:25:22 +0200 Subject: [PATCH] moved script widget configuration code from ScriptSubView to ScriptEdit --- apps/opencs/view/world/scriptedit.cpp | 5 +++++ apps/opencs/view/world/scriptsubview.cpp | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/opencs/view/world/scriptedit.cpp b/apps/opencs/view/world/scriptedit.cpp index b3dece73cf..8b4c760594 100644 --- a/apps/opencs/view/world/scriptedit.cpp +++ b/apps/opencs/view/world/scriptedit.cpp @@ -14,6 +14,11 @@ CSVWorld::ScriptEdit::ScriptEdit (QWidget* parent, const CSMDoc::Document& docum mDocument (document), mWhiteListQoutes("^[a-z|_]{1}[a-z|0-9|_]{0,}$", Qt::CaseInsensitive) { + setAcceptRichText (false); + setLineWrapMode (QTextEdit::NoWrap); + setTabStopWidth (4); + setUndoRedoEnabled (false); // we use OpenCS-wide undo/redo instead + mAllowedTypes <setAcceptRichText (false); - mEditor->setLineWrapMode (QTextEdit::NoWrap); - mEditor->setTabStopWidth (4); - mEditor->setUndoRedoEnabled (false); // we use OpenCS-wide undo/redo instead - mModel = &dynamic_cast ( *document.getData().getTableModel (CSMWorld::UniversalId::Type_Scripts));