diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-11 21:24:38 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-11 21:24:38 +0000 |
commit | ce0d21437e5197f90b0d8aa7a9055571c9db0263 (patch) | |
tree | 0fb73fc45eb8b8cb0241bb1df489454dbb0bf3d5 /utils/themeeditor/codeeditor.h | |
parent | 6c921f5e04a1336f4a27f55afe728bae8f96065c (diff) |
Theme Editor: Made errors display in status bar when cursor is on error'd line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26801 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/codeeditor.h')
-rw-r--r-- | utils/themeeditor/codeeditor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/themeeditor/codeeditor.h b/utils/themeeditor/codeeditor.h index 5df5b423d5..1771e31051 100644 --- a/utils/themeeditor/codeeditor.h +++ b/utils/themeeditor/codeeditor.h @@ -62,6 +62,8 @@ public: void addError(int line){ errors.append(line); } void clearErrors(){ errors.clear(); } void setErrorColor(QColor color){ errorColor = color; } + bool isError(int line){ return errors.contains(line); } + bool hasErrors(){ return !errors.isEmpty(); } protected: void resizeEvent(QResizeEvent *event); |