An activatable entry in the control panel.
More...
#include <dcpcontentbutton.h>
List of all members.
Detailed Description
An activatable entry in the control panel.
This class implements the brief view of an applet shown on the screen in applet lists.
It has a DcpAppletObject associated with it, so when the user clicks on the widget the applet variant is activated. The widget connects its clicked() signal to the activate() signal of the DcpAppletObject object, so the applet variant will be started when the widget is clicked.
The widget updates its contents automatically if the applet notifies it about the changes, see DcpBrief::valuesChanged().
Constructor & Destructor Documentation
DcpContentButton::DcpContentButton |
( |
DcpAppletObject * |
applet = 0 , |
|
|
QGraphicsItem * |
parent = 0 | |
|
) |
| | |
Constructor.
If you do not set an applet here, be sure to do that before the widget gets shown on the screen. See setApplet().
DcpContentButton::~DcpContentButton |
( |
|
) |
|
Member Function Documentation
void DcpContentButton::hideEvent |
( |
QHideEvent * |
event |
) |
[protected, virtual] |
void DcpContentButton::loadApplet |
( |
|
) |
|
void DcpContentButton::onClicked |
( |
|
) |
[protected, slot] |
void DcpContentButton::retranslateUi |
( |
|
) |
[protected, virtual] |
Sets the applet the DcpContentItem should handle.
Currently you can only call it before the ContentItem is popped up, due to limitations of MContentItem.
void DcpContentButton::showEvent |
( |
QShowEvent * |
event |
) |
[protected, virtual] |
void DcpContentButton::updateContents |
( |
|
) |
[protected, slot] |
Make the object update according to the values the applet returns.
It is connected on the DcpBrief::valuesChanged() signal if any.
void DcpContentButton::updateText |
( |
|
) |
[protected] |
Updates all texts according to the values the applet returns.
Friends And Related Function Documentation
friend class Ut_DcpContentButton [friend] |
The documentation for this class was generated from the following files: