Permalink
Browse files

Fix mouse cursor not reverting after clicking on a regular expression

item and added a low-opacity red background to highlighted errors
  • Loading branch information...
aelliott committed Feb 21, 2012
1 parent deba8ca commit 992aa36580c937e156beb315f85fea46cfba51c5
Showing with 2 additions and 1 deletion.
  1. +1 −1 GraphicsItems/regexgraphicsitem.cpp
  2. +1 −0 expressionhighlighter.cpp
@@ -104,5 +104,5 @@ void RegexGraphicsItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
void RegexGraphicsItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
{
-
+ setCursor(Qt::OpenHandCursor);
}
@@ -57,6 +57,7 @@ void ExpressionHighlighter::highlightBlock(const QString &text)
// Errors (T_ERROR)
QTextCharFormat errorFormat;
errorFormat.setForeground(Qt::red);
+ errorFormat.setBackground(QColor(255, 0, 0, 50));
// Special characters
QTextCharFormat specialFormat;
specialFormat.setForeground(Qt::blue);

0 comments on commit 992aa36

Please sign in to comment.