Home · API Reference · Modules
Public Member Functions
MImUpdateEvent Class Reference
Inheritance diagram for MImUpdateEvent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MImUpdateEvent (const QMap< QString, QVariant > &update, const QStringList &propertiesChanged)
 MImUpdateEvent (const QMap< QString, QVariant > &update, const QStringList &propertiesChanged, const Qt::InputMethodHints &lastHints)
QVariant value (const QString &key) const
QStringList propertiesChanged () const
Qt::InputMethodHints hints (bool *changed=0) const
bool westernNumericInputEnforced (bool *changed=0) const
bool preferNumbers (bool *changed=0) const
bool translucentInputMethod (bool *changed=0) const

Detailed Description

Monitor the input method properties sent by the application.


Constructor & Destructor Documentation

MImUpdateEvent::MImUpdateEvent ( const QMap< QString, QVariant > &  update,
const QStringList &  propertiesChanged 
) [explicit]

C'tor.

Parameters:
updatethe map containing all properties.
propertiesChangeda string list of changed properties.
MImUpdateEvent::MImUpdateEvent ( const QMap< QString, QVariant > &  update,
const QStringList &  propertiesChanged,
const Qt::InputMethodHints &  lastHints 
) [explicit]

C'tor.

Parameters:
updatethe map containing all properties.
propertiesChangeda string list of changed properties.
lastHintsthe last input method hints, as compared to the new ones in the updates map. Necessary to detect whether a flag flipped between update event.

Member Function Documentation

Qt::InputMethodHints MImUpdateEvent::hints ( bool *  changed = 0) const

Returns the focus widget's input method hints.

Parameters:
changedwhether this value changed with this event.
bool MImUpdateEvent::preferNumbers ( bool *  changed = 0) const

Returns whether input field has Qt::ImhPreferNumbers hint set.

False by default.

Parameters:
changedwhether this value changed with this event.
QStringList MImUpdateEvent::propertiesChanged ( ) const

Returns list of keys that have changed, compared to last update event.

bool MImUpdateEvent::translucentInputMethod ( bool *  changed = 0) const

Returns whether the input method should be styled translucently.

Useful when apps need to display a lot of information, for example terminals. False by default.

Parameters:
changedwhether this value changed with this event.
QVariant MImUpdateEvent::value ( const QString &  key) const

Returns invalid QVariant if key is invalid.

bool MImUpdateEvent::westernNumericInputEnforced ( bool *  changed = 0) const

Returns whether western numeric input should be shown, overridding language-specific numeric inputs.

False by default.

Parameters:
changedwhether this value changed with this event.

Copyright © 2011 Nokia Corporation
Maliit