From ce0d21437e5197f90b0d8aa7a9055571c9db0263 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Fri, 11 Jun 2010 21:24:38 +0000 Subject: 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 --- utils/themeeditor/codeeditor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/themeeditor/codeeditor.h') diff --git a/utils/themeeditor/codeeditor.h b/utils/themeeditor/codeeditor.h index 5df5b42..1771e31 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); -- cgit v1.1