Home · All Classes · Main Classes · Deprecated |
The MPreeditInjectionEvent class provides the information about preedit text. More...
Inherits QEvent.
Public Member Functions | |
MPreeditInjectionEvent (const QString &preedit) | |
MPreeditInjectionEvent (const QString &preedit, int eventCursorPosition) | |
virtual | ~MPreeditInjectionEvent () |
QString | preedit () const |
int | eventCursorPosition () const |
void | setReplacement (int replacementStart, int replacementLength) |
int | replacementStart () const |
int | replacementLength () const |
Static Public Member Functions | |
static QEvent::Type | eventNumber () |
Protected Attributes | |
MPreeditInjectionEventPrivate *const | d_ptr |
The MPreeditInjectionEvent class provides the information about preedit text.
MPreeditInjectionEvent should be sent from text edit to input context and offer the word as preedit.
MPreeditInjectionEvent::MPreeditInjectionEvent | ( | const QString & | preedit | ) |
Default constructor.
preedit | The word offered as preedit. |
MPreeditInjectionEvent::MPreeditInjectionEvent | ( | const QString & | preedit, | |
int | eventCursorPosition | |||
) |
Constructor.
preedit | The word offered as preedit. | |
eventCursorPosition | The expected cursor position inside preedit. The valid value is from 0 (at the beginning of the preedit) to the length of preedit (at the end of preedit). |
MPreeditInjectionEvent::~MPreeditInjectionEvent | ( | ) | [virtual] |
Destructor.
int MPreeditInjectionEvent::eventCursorPosition | ( | ) | const |
Returns the expected cursor position inside preedit.
Note the eventCursorPosition is not the real cursor position, while it is the cursor position inside preedit which this event expects. The input context will decide whether and where to display cursor. The valid value is from 0 (at the beginning of the preedit) to the length of preedit (at the end of preedit). Other values indicate the cursor position unknown.
QEvent::Type MPreeditInjectionEvent::eventNumber | ( | ) | [static] |
QString MPreeditInjectionEvent::preedit | ( | ) | const |
Returns the offered preedit text.
int MPreeditInjectionEvent::replacementLength | ( | ) | const |
replacement length info as in QInputMethodEvent
int MPreeditInjectionEvent::replacementStart | ( | ) | const |
replacement start info as in QInputMethodEvent
void MPreeditInjectionEvent::setReplacement | ( | int | replacementStart, | |
int | replacementLength | |||
) |
sets replacement information that should be used for QInputMethodEvent.
MPreeditInjectionEventPrivate* const MPreeditInjectionEvent::d_ptr [protected] |
Copyright © 2010 Nokia Corporation | MeeGo Touch |