An activatable entry in the control panel.
More...
#include <dcpcontentitem.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
DcpContentItem::DcpContentItem |
( |
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().
DcpContentItem::~DcpContentItem |
( |
|
) |
|
Member Function Documentation
void DcpContentItem::constructRealWidget |
( |
|
) |
[protected, virtual] |
Sets up the contentitem according to the values the applet provides: widgettype, texts, icons etc.
bool DcpContentItem::hasTwoTextLines |
( |
|
) |
const [protected] |
void DcpContentItem::helpClicked |
( |
|
) |
[slot] |
emits a signal if help button is pressed
QString DcpContentItem::helpID |
( |
|
) |
const [protected] |
void DcpContentItem::helpPageOpened |
( |
const QString & |
helpId |
) |
[signal] |
void DcpContentItem::hideEvent |
( |
QHideEvent * |
event |
) |
[protected, virtual] |
QString DcpContentItem::imageID |
( |
|
) |
const [protected] |
bool DcpContentItem::isChecked |
( |
|
) |
const [protected] |
void DcpContentItem::loadApplet |
( |
|
) |
|
void DcpContentItem::onClicked |
( |
|
) |
[protected, slot] |
void DcpContentItem::onToggleChanged |
( |
bool |
toggle |
) |
[protected, slot] |
void DcpContentItem::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 DcpContentItem::setImageFromFile |
( |
const QString & |
fileName |
) |
[protected] |
sets the image based on its filepath
void DcpContentItem::setImageName |
( |
const QString & |
name |
) |
[protected] |
sets the image with the given name (id)
void DcpContentItem::showEvent |
( |
QShowEvent * |
event |
) |
[protected, virtual] |
void DcpContentItem::sliderChanged |
( |
int |
value |
) |
[protected, slot] |
QString DcpContentItem::subtitle |
( |
|
) |
const [protected] |
QString DcpContentItem::title |
( |
|
) |
const [protected] |
void DcpContentItem::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 DcpContentItem::updateImage |
( |
|
) |
[protected] |
Updates the picture according to what the applet returns.
void DcpContentItem::updateText |
( |
|
) |
[protected] |
Updates all texts according to the values the applet returns.
int DcpContentItem::widgetType |
( |
|
) |
const [protected] |
Friends And Related Function Documentation
friend class Ut_DcpContentItem [friend] |
Property Documentation
bool DcpContentItem::checked [read] |
QString DcpContentItem::imageID [read] |
QString DcpContentItem::subtitle [read] |
QString DcpContentItem::title [read] |
int DcpContentItem::widgetType [read] |
The documentation for this class was generated from the following files: