Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QDeviceButton class represents a user-programmable button on a Qt Extended device. More...
#include <QDeviceButton>
The QDeviceButton class represents a user-programmable button on a Qt Extended device.
This class represents a physical special-function button on a Qt Extended device. The location and number of buttons will vary from device to device and the button is described in the help documentation by userText() and pixmap().
QDeviceButton objects are only usefully obtained from QDeviceButtonManager::buttonForKeycode().
Constructs QDeviceButton.
Destructs QDeviceButton.
Returns the button context. If the context is empty, then the button applies in all contexts. The semantics of non-empty contexts is device specific, but in general the meaning of a context is a certain device state. The Qt Extended server defines the context "HomeScreen" such that device button mappings can be made that only apply on the device home screen.
See also setContext().
Returns the user-assigned action for when this button is pressed and held.
See also setHeldAction().
Returns the mappability set for the pressed action.
See also setHeldActionMappable().
Returns the button keycode. See the Qt::Key enum for the values.
See also setKeycode().
Returns the pixmap for this button, or an empty (null) pixmap if none is defined.
See also setPixmap().
Returns the user-assigned action for when this button is pressed.
See also setPressedAction().
Returns the mappability set for the pressed action.
See also setPressedActionMappable().
Returns the user-assigned action for when this button is released.
See also setReleasedAction().
Returns the mappability set for the released action.
See also setReleasedActionMappable().
Sets the context where the keycode applies.
See also context().
Set the action to be performed when this button is pressed and held to action.
See also heldAction().
Set the mappability of the held action to mappable.
See also heldActionMappable().
Sets the keycode that is sent when the button is pressed.
See also keycode().
Set the pixmap for this button to the resource named pmn. This will ideally match the label on the physical button.
See also pixmap().
Set the action to be performed when this button is pressed to action.
See also pressedAction().
Set the mappability of the pressed action to mappable.
See also pressedActionMappable().
Set the action to be performed when this button is released action.
See also releasedAction().
Set the mappability of the released action to mappable.
See also releasedActionMappable().
Sets the human-readable, translated description of the button to text.
See also userText().
Returns a human-readable, translated description of the button.
See also setUserText().
Returns true if this QDeviceButton is equal to e.
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |