KTextEditor
attribute.cpp
Go to the documentation of this file.
A class which provides customized text decorations.
Definition: attribute.h:58
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 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:99
bool fontBold() const
Find out if the font weight is set to QFont::Bold.
Definition: attribute.cpp:151
bool backgroundFillWhitespace() const
Determine whether background color is drawn over whitespace.
Definition: attribute.cpp:115
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:97
QBrush selectedBackground() const
Get the brush used to draw the background of selected text, if any.
Definition: attribute.cpp:128
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
Attribute & operator+=(const Attribute &a)
Addition assignment operator.
Definition: attribute.cpp:56
KGuiItem properties()
ActivationType
Several automatic activation mechanisms exist for associated attributes.
Definition: attribute.h:258
Changes the brush used to paint the text when it is selected.
Definition: attribute.h:95
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.