#ifndef __HIGHLIGHTER__ #define __HIGHLIGHTER__ #include class QLineEdit; class RuleSetHighlighter : public QSyntaxHighlighter { Q_OBJECT public: RuleSetHighlighter(QTextDocument * parent, QLineEdit *regexEditor); protected: void highlightBlock(const QString & text); private: QLineEdit * _regexEditor; }; #endif /* __HIGHLIGHTER__ */