Show webfinger if displayName is unknown for an author.
[larjonas-pumpa.git] / src / fancyhighlighter.h
blobaf57f96b9c63733ee0faae97a3628f682401579d
1 /*
2 Copyright 2013-2015 Mats Sjöberg
4 This file is part of the Pumpa programme.
6 Pumpa is free software: you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 Pumpa is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Pumpa. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef FANCY_HIGHLIGHTER_H
21 #define FANCY_HIGHLIGHTER_H
23 #include <QtGui>
24 #include "qaspell.h"
25 #include "util.h"
27 class FancyHighlighter : public QSyntaxHighlighter {
28 public:
29 FancyHighlighter(QTextDocument* doc, QASpell* checker);
31 protected:
32 void highlightBlock(const QString& text);
34 QASpell* m_checker;
37 #endif /* FANCY_HIGHLIGHTER_H */