forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user