summaryrefslogtreecommitdiff
path: root/utils/themeeditor/skindocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/skindocument.cpp')
-rw-r--r--utils/themeeditor/skindocument.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/themeeditor/skindocument.cpp b/utils/themeeditor/skindocument.cpp
index 3da248a30b..f7c902f30f 100644
--- a/utils/themeeditor/skindocument.cpp
+++ b/utils/themeeditor/skindocument.cpp
@@ -52,6 +52,7 @@ SkinDocument::SkinDocument(QLabel* statusLabel, QString file, QWidget *parent):
52 fin.open(QFile::ReadOnly); 52 fin.open(QFile::ReadOnly);
53 editor->document()->setPlainText(QString(fin.readAll())); 53 editor->document()->setPlainText(QString(fin.readAll()));
54 saved = editor->document()->toPlainText(); 54 saved = editor->document()->toPlainText();
55 editor->setTextCursor(QTextCursor(editor->document()->begin()));
55 fin.close(); 56 fin.close();
56 } 57 }
57 58
@@ -113,7 +114,7 @@ void SkinDocument::setupUI()
113{ 114{
114 /* Setting up the text edit */ 115 /* Setting up the text edit */
115 layout = new QHBoxLayout; 116 layout = new QHBoxLayout;
116 editor = new QPlainTextEdit(this); 117 editor = new CodeEditor(this);
117 editor->setLineWrapMode(QPlainTextEdit::NoWrap); 118 editor->setLineWrapMode(QPlainTextEdit::NoWrap);
118 layout->addWidget(editor); 119 layout->addWidget(editor);
119 120