Warning, file /utilities/kregexpeditor/src/regexphighlighter.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *  SPDX-FileCopyrightText: 2002-2003 Jesper K. Pedersen <blackie@kde.org>
0003  *
0004  *  SPDX-License-Identifier: LGPL-2.0-only
0005  **/
0006 
0007 #ifndef REGEXPHIGHLIGHTER_H
0008 #define REGEXPHIGHLIGHTER_H
0009 
0010 #include <QSyntaxHighlighter>
0011 
0012 // krazy:excludeall=qclasses
0013 
0014 class QTextEdit;
0015 
0016 class RegexpHighlighter : public QSyntaxHighlighter
0017 {
0018 public:
0019     explicit RegexpHighlighter(QTextEdit *edit);
0020     void setRegExp(const QString &regexp);
0021     void setCaseSensitive(bool);
0022     void setMinimal(bool);
0023 
0024 protected:
0025     QString _regexp;
0026     bool _caseSensitive, _minimal;
0027 };
0028 
0029 #endif /* REGEXPHIGHLIGHTER_H */