mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-08 14:22:31 -04:00
>greentext
This commit is contained in:
parent
4b38b66937
commit
1dd0a2acd1
5 changed files with 73 additions and 2 deletions
26
retroshare-gui/src/util/RsSyntaxHighlighter.h
Normal file
26
retroshare-gui/src/util/RsSyntaxHighlighter.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#ifndef RSSYNTAXHIGHLIGHTER_H
|
||||
#define RSSYNTAXHIGHLIGHTER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QSyntaxHighlighter>
|
||||
#include <QTextEdit>
|
||||
|
||||
class RsSyntaxHighlighter : public QSyntaxHighlighter
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RsSyntaxHighlighter(QTextEdit *parent = 0);
|
||||
|
||||
protected:
|
||||
void highlightBlock(const QString &text) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
QTextCharFormat quotationFormat;
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
||||
#endif // RSSYNTAXHIGHLIGHTER_H
|
Loading…
Add table
Add a link
Reference in a new issue