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
void MTextEditView::contentScrolled |
( |
|
) |
[signal] |
Emitted when content is scrolled inside text entry.
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::selectionChanged |
( |
int |
anchor, |
|
|
const QRectF |
anchorRect, |
|
|
bool |
anchorVisible, |
|
|
int |
cursor, |
|
|
const QRectF |
cursorRect, |
|
|
bool |
cursorVisible | |
|
) |
| | [signal] |
This signal is emitted when text selection is changed.
- Parameters:
-
| anchor | Logical position of one selection end. |
| anchorRect | Graphical position of anchor in controller's coordinates. |
| anchorVisible | Contains true if anchor is visible on the screen. |
| cursor | Logical position of another selection end. |
| cursorRect | Graphical position of cursor in controller's coordinates. |
| cursorVisible | Contains true if cursor is visible on the screen. |
Note: anchor is equal to cursor if there is no selection.
- See also:
- QTextCursor::anchor(), QTextCursor::position()
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. |
Property Documentation
QVariant MTextEditView::inputMethodFont [read] |