Standard view for MTextEdit widget.
More...
Inherits MWidgetView.
List of all members.
Detailed Description
Standard view for MTextEdit widget.
Constructor & Destructor Documentation
MTextEditView::MTextEditView |
( |
MTextEdit * |
controller |
) |
|
Constructor.
- Parameters:
-
| controller | MTextEdit widget which this view shows |
MTextEditView::~MTextEditView |
( |
|
) |
[virtual] |
Member Function Documentation
int MTextEditView::cursorPosition |
( |
const QPointF & |
hitPoint |
) |
[protected] |
Returns cursor position from a mouse position.
- Parameters:
-
- Returns:
- cursor position as characters from start of document
int MTextEditView::cursorPosition |
( |
const QPointF & |
hitPoint, |
|
|
Qt::HitTestAccuracy |
accuracy | |
|
) |
| | [protected] |
Returns cursor position from a mouse position.
- Parameters:
-
| hitPoint | mouse position |
| accuracy | specified accuracy |
- Returns:
- cursor position as characters from start of document
void MTextEditView::doUpdate |
( |
|
) |
[protected, virtual] |
Notifies this and possibly derived views about the need for redraw.
void MTextEditView::handleLongPress |
( |
|
) |
[protected, virtual, slot] |
Handler for long press event.
void MTextEditView::hideInfoBanner |
( |
|
) |
[protected, slot] |
Hide informational banner about failed text paste.
void MTextEditView::informPasteFailed |
( |
|
) |
[protected, virtual, slot] |
Show informational banner about failed text paste.
const QPointF & MTextEditView::mouseTarget |
( |
|
) |
const [protected] |
Gets the last mouse position.
void MTextEditView::removeFocus |
( |
Qt::FocusReason |
reason |
) |
[protected, slot] |
void MTextEditView::setFocused |
( |
Qt::FocusReason |
reason |
) |
[protected, slot] |
Updates cursor position based on mouse event.
- Parameters:
-
| event | Event that contains the mouse position, buttons, etc. |
| updateSelection | Tells whether or not to update text selection. If false, only cursor moves without selecting any text. |