summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/skindocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/skindocument.cpp')
-rw-r--r--utils/themeeditor/skindocument.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/utils/themeeditor/skindocument.cpp b/utils/themeeditor/skindocument.cpp
index 80a4fa330d..c7b69688f6 100644
--- a/utils/themeeditor/skindocument.cpp
+++ b/utils/themeeditor/skindocument.cpp
@@ -27,7 +27,8 @@
#include <QMessageBox>
#include <QFileDialog>
-SkinDocument::SkinDocument(QWidget *parent) : QWidget(parent)
+SkinDocument::SkinDocument(QLabel* statusLabel, QWidget *parent) :
+ QWidget(parent), statusLabel(statusLabel)
{
setupUI();
@@ -36,8 +37,8 @@ SkinDocument::SkinDocument(QWidget *parent) : QWidget(parent)
saved = "";
}
-SkinDocument::SkinDocument(QString file, QWidget *parent):
- QWidget(parent), fileName(file)
+SkinDocument::SkinDocument(QLabel* statusLabel, QString file, QWidget *parent):
+ QWidget(parent), fileName(file), statusLabel(statusLabel)
{
setupUI();
@@ -155,7 +156,9 @@ void SkinDocument::settingsChanged()
void SkinDocument::codeChanged()
{
- model->changeTree(editor->document()->toPlainText().toAscii());
+ parseStatus = model->changeTree(editor->document()->
+ toPlainText().toAscii());
+ statusLabel->setText(parseStatus);
if(editor->document()->toPlainText() != saved)
emit titleChanged(title + QChar('*'));