QSyntaxHighlighter Class Reference

QSyntaxHighlighter Class Referenceabstract

#include <qsyntaxhighlighter.h>

Class Description

Definition at line 66 of file qsyntaxhighlighter.h.

+ Inheritance diagram for QSyntaxHighlighter:

Public Slots

void rehighlight ()
 
void rehighlightBlock (const QTextBlock &block)
 
- Public Slots inherited from QObject
void deleteLater ()
 

Public Member Functions

 QSyntaxHighlighter (QObject *parent)
 
 QSyntaxHighlighter (QTextDocument *parent)
 
 QSyntaxHighlighter (QTextEdit *parent)
 
virtual ~QSyntaxHighlighter ()
 
void setDocument (QTextDocument *doc)
 
QTextDocumentdocument () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Member Functions

virtual void highlightBlock (const QString &text)=0
 
void setFormat (int start, int count, const QTextCharFormat &format)
 
void setFormat (int start, int count, const QColor &color)
 
void setFormat (int start, int count, const QFont &font)
 
QTextCharFormat format (int pos) const
 
int previousBlockState () const
 
int currentBlockState () const
 
void setCurrentBlockState (int newState)
 
void setCurrentBlockUserData (QTextBlockUserData *data)
 
QTextBlockUserDatacurrentBlockUserData () const
 
QTextBlock currentBlock () const
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Additional Inherited Members

- Signals inherited from QObject
void destroyed (QObject *=0)
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 
- Properties inherited from QObject
QString objectName
 

Constructor & Destructor Documentation

QSyntaxHighlighter ( QObject parent)
virtual ~QSyntaxHighlighter ( )
virtual

Member Function Documentation

void setDocument ( QTextDocument doc)
QTextDocument* document ( ) const
void rehighlight ( )
slot
void rehighlightBlock ( const QTextBlock block)
slot
virtual void highlightBlock ( const QString text)
protectedpure virtual
void setFormat ( int  start,
int  count,
const QTextCharFormat format 
)
protected
void setFormat ( int  start,
int  count,
const QColor color 
)
protected
void setFormat ( int  start,
int  count,
const QFont font 
)
protected
QTextCharFormat format ( int  pos) const
protected
int previousBlockState ( ) const
protected
int currentBlockState ( ) const
protected
void setCurrentBlockState ( int  newState)
protected
void setCurrentBlockUserData ( QTextBlockUserData data)
protected
QTextBlockUserData* currentBlockUserData ( ) const
protected
QTextBlock currentBlock ( ) const
protected

The documentation for this class was generated from the following file: