diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-07-18 00:59:02 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-18 00:59:02 +0000 |
commit | 3c4fb8abe4e28091cb857705af2d762cd00b985a (patch) | |
tree | 804090633b693cbb185d801a75683404d345e2fc /utils | |
parent | eb52a45a0c1f42386dbc0e148e81972ae3878b71 (diff) |
Theme Editor: Added column number to parser error messages
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27477 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils')
-rw-r--r-- | utils/themeeditor/gui/skindocument.cpp | 4 | ||||
-rw-r--r-- | utils/themeeditor/models/parsetreemodel.cpp | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/utils/themeeditor/gui/skindocument.cpp b/utils/themeeditor/gui/skindocument.cpp index f04c12d213..18877d14ee 100644 --- a/utils/themeeditor/gui/skindocument.cpp +++ b/utils/themeeditor/gui/skindocument.cpp @@ -211,7 +211,9 @@ void SkinDocument::cursorChanged() skin_parse(line.selectedText().toAscii()); if(skin_error_line() > 0) parseStatus = tr("Error on line ") + - QString::number(line.blockNumber() + 1) + tr(": ") + + QString::number(line.blockNumber() + 1) + + tr(", column ") + QString::number(skin_error_col()) + + tr(": ") + skin_error_message(); statusLabel->setText(parseStatus); } diff --git a/utils/themeeditor/models/parsetreemodel.cpp b/utils/themeeditor/models/parsetreemodel.cpp index 66c96213ab..8e49118e2e 100644 --- a/utils/themeeditor/models/parsetreemodel.cpp +++ b/utils/themeeditor/models/parsetreemodel.cpp @@ -72,6 +72,7 @@ QString ParseTreeModel::changeTree(const char *document) { QString error = tr("Error on line ") + QString::number(skin_error_line()) + + tr(", column ") + QString::number(skin_error_col()) + tr(": ") + QString(skin_error_message()); return error; } |