Home · All Classes · Main Classes · Deprecated |
Standard view class for MLabel. More...
Inherits MWidgetView.
Public Member Functions | |
MLabelView (MLabel *controller) | |
virtual | ~MLabelView () |
Protected Member Functions | |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
void | longPressEvent (QGraphicsSceneContextMenuEvent *event) |
Standard view class for MLabel.
Label view class that supports rendering of simple unformatted text and rich html formatted text.
![]() | Default simple label. |
![]() | Simple label with custom font and color. |
![]() | Simple label with eliding enabled. |
![]() | Rich label with html styling. |
Links in rich text can be opened by clicking them. Simple unformatted label is totally non-interactive.
MLabelView::MLabelView | ( | MLabel * | controller | ) |
Constructs label view.
Pointer | to the controller. |
MLabelView::~MLabelView | ( | ) | [virtual] |
Destructs label view.
void MLabelView::longPressEvent | ( | QGraphicsSceneContextMenuEvent * | event | ) | [protected] |
void MLabelView::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected, virtual] |
Mouse press event handler.
Accepted when displaying rich text and when clicking an anchor. Ignored if displaying simple text or clicking outside anchor.
Reimplemented from MWidgetView.
void MLabelView::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected, virtual] |
Mouse release event handler.
If released over an anchor MLabelModel::linkActivated() signal is emitted.
Reimplemented from MWidgetView.
Copyright © 2010 Nokia Corporation | MeeGo Touch |