KSyntaxHighlighting
kquicksyntaxhighlighter.cpp
40 m_highlighter->setDocument(m_textEdit->property("textDocument").value<QQuickTextDocument *>()->textDocument());
61 m_highlighter->setTheme(m_theme.isValid() ? m_theme : unwrappedRepository()->themeForPalette(QGuiApplication::palette()));
Q_INVOKABLE KSyntaxHighlighting::Theme defaultTheme(DefaultTheme t=LightTheme) const
Returns a default theme instance of the given type.
Definition repository.cpp:171
Q_INVOKABLE KSyntaxHighlighting::Theme theme(const QString &themeName) const
Returns the theme called themeName.
Definition repository.cpp:161
Q_INVOKABLE KSyntaxHighlighting::Definition definitionForName(const QString &defName) const
Returns the Definition named defName.
Definition repository.cpp:119
A QSyntaxHighlighter implementation for use with QTextDocument.
Definition syntaxhighlighter.h:27
void setTheme(const Theme &theme) override
Sets the theme used for highlighting.
Definition syntaxhighlighter.cpp:144
void setDefinition(const Definition &def) override
Sets the syntax definition used for highlighting.
Definition syntaxhighlighter.cpp:130
Syntax highlighting engine for Kate syntax definitions.
Definition abstracthighlighter.h:17
QPalette palette()
QString
Q_EMITQ_EMIT
QVariant property(const char *name) const const
QTextDocument * textDocument() const const
void rehighlight()
void setDocument(QTextDocument *doc)
QVariant fromValue(T &&value)
int toInt(bool *ok) const const
QString toString() const const
int userType() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.