From 0e44ce9bedbea1244ef971b48f38a9c48eecf0f5 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Mon, 7 Jun 2010 20:29:46 +0000 Subject: Theme Editor: Changed anged error reporting method in parser, added error messages to status bar in editor git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26672 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/skindocument.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'utils/themeeditor/skindocument.cpp') diff --git a/utils/themeeditor/skindocument.cpp b/utils/themeeditor/skindocument.cpp index 80a4fa3..c7b6968 100644 --- a/utils/themeeditor/skindocument.cpp +++ b/utils/themeeditor/skindocument.cpp @@ -27,7 +27,8 @@ #include #include -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('*')); -- cgit v1.1