SystemUiButton
Since: BlackBerry 10.0.0
#include <bb/system/SystemUiButton>
To link against this class, add the following line to your .pro file: LIBS += -lbbsystem
The invokable buttons that are available for dialogs and toasts.
The presentation of the button is dependent on the class using it. For instance, some classes may choose to always show the button as enabled, or to not show buttons with null or empty labels.
Overview
Public Functions Index
SystemUiButton (QObject *parent=0) | |
SystemUiButton (const QString &label, QObject *parent=0) | |
virtual | ~SystemUiButton () |
bool | enabled () const |
QString | label () const |
Q_INVOKABLE void | resetEnabled () |
Q_INVOKABLE void | resetLabel () |
void | setEnabled (bool value) |
void | setLabel (const QString &text) |
Signals Index
void | enabledChanged (bool value) |
void | labelChanged (const QString &value) |
Properties
bool
Indicates whether the button is enabled and can be clicked.
BlackBerry 10.0.0
Public Functions
Constructs an instance of a button.
Parameters | |
---|---|
parent |
If not 0, the supplied parent will be responsible for deleting this instance. |
BlackBerry 10.0.0
Constructs an instance of a button with the label provided.
Parameters | |
---|---|
label |
The label for the button. |
parent |
If not 0, the supplied parent will be responsible for deleting this instance. |
BlackBerry 10.0.0
virtual
Destructor.
BlackBerry 10.0.0
bool
Retrieves the enabled state of the button.
Returns whether the button should be enabled.
BlackBerry 10.0.0
QString
Retrieves the label description that is associated with the button.
Returns the label of the button.
BlackBerry 10.0.0
Q_INVOKABLE void
Resets the label description to QString::null.
BlackBerry 10.0.0
void
Enables or disables the button.
Parameters | |
---|---|
value |
The new enabled state of the button. |
BlackBerry 10.0.0
void
Sets the label description to associate with the button.
Parameters | |
---|---|
text |
The new label text. |
BlackBerry 10.0.0
Signals
void
Emitted when the enabled property is changed programmatically.
Parameters | |
---|---|
value |
The new value of the enabled property. |
BlackBerry 10.0.0
void
Emitted when the label property is changed programmatically.
Parameters | |
---|---|
value |
The new value of the label property. |
BlackBerry 10.0.0