summaryrefslogtreecommitdiff
path: root/utils/themeeditor/codeeditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/codeeditor.h')
-rw-r--r--utils/themeeditor/codeeditor.h2
1 files changed, 2 insertions, 0 deletions
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);