Convert semantic highlighter to use additional formats

instead of extra selections. This requires a recent
version of Qt 4.7, the beta 2 will not do.

Done-with: Roberto Raggi
This commit is contained in:
mae
2010-07-13 14:37:31 +02:00
parent b421d9c007
commit 72bb7c5c11
7 changed files with 185 additions and 65 deletions

View File

@@ -46,6 +46,7 @@
#include <QtCore/qglobal.h>
#include <QtCore/qobject.h>
#include <QtGui/qtextobject.h>
#include <QtGui/QTextLayout>
QT_BEGIN_NAMESPACE
class QTextDocument;
@@ -74,6 +75,8 @@ public:
void setDocument(QTextDocument *doc);
QTextDocument *document() const;
void setExtraAdditionalFormats(const QTextBlock& block, const QList<QTextLayout::FormatRange> &formats);
public Q_SLOTS:
void rehighlight();
void rehighlightBlock(const QTextBlock &block);