Home · All Classes · Main Classes · Deprecated |
Common highlighter class for easily highlighting items from MLabel without inheriting own classes. More...
Inherits QObject, and MLabelHighlighter.
Signals | |
void | clicked (const QString &item) |
void | longPressed (const QString &item) |
Public Member Functions | |
MCommonLabelHighlighter (const QRegExp ®Exp) | |
virtual | ~MCommonLabelHighlighter () |
virtual QRegExp | highlightExpression () const |
virtual void | click (const QString &item) |
virtual void | longPress (const QString &item) |
Common highlighter class for easily highlighting items from MLabel without inheriting own classes.
Inherits MLabelHighlighter and emits signals for the click and longPress interactions.
MCommonLabelHighlighter::MCommonLabelHighlighter | ( | const QRegExp & | regExp | ) |
Constructs common highlighter class.
MCommonLabelHighlighter::~MCommonLabelHighlighter | ( | ) | [virtual] |
Destructs MCommonLabelHighlighter.
void MCommonLabelHighlighter::click | ( | const QString & | item | ) | [virtual] |
Emits clicked() signal;.
Implements MLabelHighlighter.
void MCommonLabelHighlighter::clicked | ( | const QString & | item | ) | [signal] |
A signal which is emitted when a highlighted item in label is clicked.
QRegExp MCommonLabelHighlighter::highlightExpression | ( | ) | const [virtual] |
Returns the expression that was given as parameter into the constructor.
Implements MLabelHighlighter.
void MCommonLabelHighlighter::longPress | ( | const QString & | item | ) | [virtual] |
Emits longPressed() signal;.
Implements MLabelHighlighter.
void MCommonLabelHighlighter::longPressed | ( | const QString & | item | ) | [signal] |
A signal which is emitted when a highlighted item in label is long pressed.
Copyright © 2010 Nokia Corporation | MeeGo Touch |