Konsole::RegExpFilter::HotSpot
Konsole::RegExpFilter::HotSpot Class Reference
#include <Filter.h>
Inheritance diagram for Konsole::RegExpFilter::HotSpot:
Public Member Functions | |
HotSpot (int startLine, int startColumn, int endLine, int endColumn) | |
void | activate (const QString &action=QString()) override |
QStringList | capturedTexts () const |
void | setCapturedTexts (const QStringList &texts) |
Public Member Functions inherited from Konsole::Filter::HotSpot | |
HotSpot (int startLine, int startColumn, int endLine, int endColumn) | |
virtual QList< QAction * > | actions () |
int | endColumn () const |
int | endLine () const |
int | startColumn () const |
int | startLine () const |
Type | type () const |
Additional Inherited Members | |
Public Types inherited from Konsole::Filter::HotSpot | |
enum | Type { NotSpecified , Link , Marker } |
Protected Member Functions inherited from Konsole::Filter::HotSpot | |
void | setType (Type type) |
Detailed Description
Type of hotspot created by RegExpFilter.
The capturedTexts() method can be used to find the text matched by the filter's regular expression.
Constructor & Destructor Documentation
◆ HotSpot()
RegExpFilter::HotSpot::HotSpot | ( | int | startLine, |
int | startColumn, | ||
int | endLine, | ||
int | endColumn ) |
Definition at line 308 of file Filter.cpp.
Member Function Documentation
◆ activate()
Causes the an action associated with a hotspot to be triggered.
- Parameters
-
action The action to trigger. This is typically empty ( in which case the default action should be performed ) or one of the object names from the actions() list. In which case the associated action should be performed.
Implements Konsole::Filter::HotSpot.
Reimplemented in Konsole::UrlFilter::HotSpot.
Definition at line 314 of file Filter.cpp.
◆ capturedTexts()
QStringList RegExpFilter::HotSpot::capturedTexts | ( | ) | const |
Returns the texts found by the filter when matching the filter's regular expression.
Definition at line 322 of file Filter.cpp.
◆ setCapturedTexts()
void RegExpFilter::HotSpot::setCapturedTexts | ( | const QStringList & | texts | ) |
Sets the captured texts associated with this hotspot.
Definition at line 318 of file Filter.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:52:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:52:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.