Home ยท API Reference

MKeyOverride Class Reference

MKeyOverride is used to store key attribute overrides for virtual keyboard. More...

List of all members.

Public Types

enum  KeyOverrideAttribute { Label = 0x1, Icon = 0x2, Highlighted = 0x4, Enabled = 0x8 }
 Defines all the attributes of an key override. More...

Public Slots

void setLabel (const QString &label)
 Sets text for the key.
void setIcon (const QString &icon)
 Sets icon name.
void setHighlighted (bool highlighted)
 Set highlighted state for item.
void setEnabled (bool enabled)
 If enabled is true, the key is enabled; otherwise, it is disabled.

Signals

void keyAttributesChanged (const QString &keyId, const MKeyOverride::KeyOverrideAttributes changedAttributes)
 Emitted when some attributes of the key are changed.

Public Member Functions

 MKeyOverride (const QString &keyId)
 Constructor.
 MKeyOverride (const MKeyOverride &)
 Copy constructor.
virtual ~MKeyOverride ()
 Destructor.
const MKeyOverrideoperator= (const MKeyOverride &other)
QString keyId () const
 Returns the key id.
QString label () const
 Returns text from the key.
QString icon () const
 Returns icon name.
bool highlighted () const
 Return true if the key is highlighted; otherwise return false.
bool enabled () const
 Return true if the key is enabled; otherwise return false.

Properties

QString label
QString icon
bool highlighted
bool enabled


Detailed Description

MKeyOverride is used to store key attribute overrides for virtual keyboard.

Member Enumeration Documentation

Defines all the attributes of an key override.

Enumerator:
Label 
Icon 
Highlighted 
Enabled 


Constructor & Destructor Documentation

MKeyOverride::MKeyOverride ( const QString &  keyId  )  [explicit]

Constructor.

MKeyOverride::MKeyOverride ( const MKeyOverride other  ) 

Copy constructor.

MKeyOverride::~MKeyOverride (  )  [virtual]

Destructor.


Member Function Documentation

const MKeyOverride & MKeyOverride::operator= ( const MKeyOverride other  ) 

QString MKeyOverride::keyId (  )  const

Returns the key id.

QString MKeyOverride::label (  )  const

Returns text from the key.

QString MKeyOverride::icon (  )  const

Returns icon name.

bool MKeyOverride::highlighted (  )  const

Return true if the key is highlighted; otherwise return false.

bool MKeyOverride::enabled (  )  const

Return true if the key is enabled; otherwise return false.

void MKeyOverride::setLabel ( const QString &  label  )  [slot]

Sets text for the key.

void MKeyOverride::setIcon ( const QString &  icon  )  [slot]

Sets icon name.

void MKeyOverride::setHighlighted ( bool  highlighted  )  [slot]

Set highlighted state for item.

void MKeyOverride::setEnabled ( bool  enabled  )  [slot]

If enabled is true, the key is enabled; otherwise, it is disabled.

void MKeyOverride::keyAttributesChanged ( const QString &  keyId,
const MKeyOverride::KeyOverrideAttributes  changedAttributes 
) [signal]

Emitted when some attributes of the key are changed.

Parameters:
keyId,the key id.
changedAttributes Specifies the changed attributes.
See also:
KeyOverrideAttribute


Property Documentation

QString MKeyOverride::label [read, write]

QString MKeyOverride::icon [read, write]

bool MKeyOverride::highlighted [read, write]

bool MKeyOverride::enabled [read, write]


Copyright © 2010 Nokia Corporation
MeeGo Touch