KTextEditor
attribute.cpp
Go to the documentation of this file.
ActivationType
Several automatic activation mechanisms exist for associated attributes.
Definition: attribute.h:262
void setBackgroundFillWhitespace(bool fillWhitespace)
Set whether background color is drawn over whitespace.
Definition: attribute.cpp:123
void setSelectedBackground(const QBrush &brush)
Set a brush to be used to draw the background of selected text, if any.
Definition: attribute.cpp:136
void setDynamicAttribute(ActivationType type, Attribute::Ptr attribute)
Set the attribute to use when the event referred to by type occurs.
Definition: attribute.cpp:81
QBrush selectedForeground() const
Get the brush used to draw text when it is selected, if any.
Definition: attribute.cpp:102
QBrush selectedBackground() const
Get the brush used to draw the background of selected text, if any.
Definition: attribute.cpp:128
bool fontBold() const
Find out if the font weight is set to QFont::Bold.
Definition: attribute.cpp:151
Attribute & operator=(const Attribute &a)
Replacement assignment operator.
Definition: attribute.cpp:189
const QList< KAction * > & associatedActions() const
Returns a list of currently associated KActions.
Definition: attribute.cpp:171
@ SelectedBackground
Changes the brush used to paint the background when it is selected.
Definition: attribute.h:101
@ SelectedForeground
Changes the brush used to paint the text when it is selected.
Definition: attribute.h:99
@ BackgroundFillWhitespace
Determines whether background color is drawn over whitespace. Defaults to true.
Definition: attribute.h:103
void setOutline(const QBrush &brush)
Set a brush to be used to draw an outline around text.
Definition: attribute.cpp:97
Attribute::Ptr dynamicAttribute(ActivationType type) const
Return the attribute to use when the event referred to by type occurs.
Definition: attribute.cpp:73
void setSelectedForeground(const QBrush &foreground)
Set a brush to be used to draw selected text.
Definition: attribute.cpp:110
void clearAssociatedActions()
Clears all associations between KActions and this attribute.
Definition: attribute.cpp:161
bool backgroundFillWhitespace() const
Determine whether background color is drawn over whitespace.
Definition: attribute.cpp:115
QBrush outline() const
Get the brush used to draw an outline around text, if any.
Definition: attribute.cpp:89
KGuiItem properties()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.