Home · All Classes · Main Classes · Deprecated
Signals | Public Member Functions

MCommonLabelHighlighter Class Reference

Common highlighter class for easily highlighting items from MLabel without inheriting own classes. More...

Inherits QObject, and MLabelHighlighter.

List of all members.

Signals

void clicked (const QString &item)
void longPressed (const QString &item)

Public Member Functions

 MCommonLabelHighlighter (const QRegExp &regExp)
virtual ~MCommonLabelHighlighter ()
virtual QRegExp highlightExpression () const
virtual void click (const QString &item)
virtual void longPress (const QString &item)

Detailed Description

Common highlighter class for easily highlighting items from MLabel without inheriting own classes.

Inherits MLabelHighlighter and emits signals for the click and longPress interactions.


Constructor & Destructor Documentation

MCommonLabelHighlighter::MCommonLabelHighlighter ( const QRegExp regExp  ) 

Constructs common highlighter class.

MCommonLabelHighlighter::~MCommonLabelHighlighter (  )  [virtual]

Member Function Documentation

void MCommonLabelHighlighter::click ( const QString item  )  [virtual]

Emits clicked() signal if event handling is enabled.

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 if event handling is enabled.

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