KTextEditor
attribute.cpp
Go to the documentation of this file.
void setProperty(int propertyId, const QVariant &value)
A class which provides customized text decorations.
Definition: attribute.h:60
int fontWeight() const
void setBackgroundFillWhitespace(bool fillWhitespace)
Set whether background color is drawn over whitespace.
Definition: attribute.cpp:123
const QList< KAction * > & associatedActions() const
Returns a list of currently associated KActions.
Definition: attribute.cpp:171
QBrush selectedForeground() const
Get the brush used to draw text when it is selected, if any.
Definition: attribute.cpp:102
QBrush outline() const
Get the brush used to draw an outline around text, if any.
Definition: attribute.cpp:89
void setOutline(const QBrush &brush)
Set a brush to be used to draw an outline around text.
Definition: attribute.cpp:97
void merge(const QTextFormat &other)
void setSelectedForeground(const QBrush &foreground)
Set a brush to be used to draw selected text.
Definition: attribute.cpp:110
Determines whether background color is drawn over whitespace. Defaults to true.
Definition: attribute.h:103
bool fontBold() const
Find out if the font weight is set to QFont::Bold.
Definition: attribute.cpp:151
QTextFormat & operator=(const QTextFormat &other)
bool hasProperty(int propertyId) const
QTextCharFormat()
bool backgroundFillWhitespace() const
Determine whether background color is drawn over whitespace.
Definition: attribute.cpp:115
QMap< int, QVariant > properties() const
Attribute & operator=(const Attribute &a)
Replacement assignment operator.
Definition: attribute.cpp:189
void setSelectedBackground(const QBrush &brush)
Set a brush to be used to draw the background of selected text, if any.
Definition: attribute.cpp:136
Changes the brush used to paint the background when it is selected.
Definition: attribute.h:101
QBrush selectedBackground() const
Get the brush used to draw the background of selected text, if any.
Definition: attribute.cpp:128
void setFontWeight(int weight)
bool boolProperty(int propertyId) const
void clearAssociatedActions()
Clears all associations between KActions and this attribute.
Definition: attribute.cpp:161
void setDynamicAttribute(ActivationType type, Attribute::Ptr attribute)
Set the attribute to use when the event referred to by type occurs.
Definition: attribute.cpp:81
QVariant property(int propertyId) const
Attribute & operator+=(const Attribute &a)
Addition assignment operator.
Definition: attribute.cpp:56
ActivationType
Several automatic activation mechanisms exist for associated attributes.
Definition: attribute.h:262
Changes the brush used to paint the text when it is selected.
Definition: attribute.h:99
int type() const
Attribute::Ptr dynamicAttribute(ActivationType type) const
Return the attribute to use when the event referred to by type occurs.
Definition: attribute.cpp:73
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.