Plasma
Plasma::ExtenderGroup Class Reference
Allows for grouping of extender items. More...
#include <Plasma/ExtenderGroup>

Public Slots | |
void | collapseGroup () |
void | expandGroup () |
Public Member Functions | |
bool | autoHide () const |
ExtenderGroup (Extender *parent, uint groupId=0) | |
QList< ExtenderItem * > | items () const |
void | setAutoHide (bool autoHide) |
~ExtenderGroup () | |
Properties | |
bool | autoHide |
Detailed Description
Allows for grouping of extender items.
To be able to group multiple items together, you'll need to instantiate an ExtenderGroup, and call setGroup() on all extender items you wish to add to this group. This ExtenderGroup is just the same as any other ExtenderItem, except for the expand group and collapse group buttons it provides, and the fact that it will automatically hide itself if less then one item belong to this group and autoHide is set to true.
- Since:
- 4.3
Definition at line 50 of file extendergroup.h.
Constructor & Destructor Documentation
Plasma::ExtenderGroup::ExtenderGroup | ( | Extender * | parent, | |
uint | groupId = 0 | |||
) | [explicit] |
Creates a group.
- Parameters:
-
applet The applet this group is part of. Null is not allowed here.
Definition at line 37 of file extendergroup.cpp.
Plasma::ExtenderGroup::~ExtenderGroup | ( | ) |
Definition at line 83 of file extendergroup.cpp.
Member Function Documentation
bool Plasma::ExtenderGroup::autoHide | ( | ) | const |
- Returns:
- whether or not this item hides itself if there are less then 2 items in.
void Plasma::ExtenderGroup::collapseGroup | ( | ) | [slot] |
Collapses this group to hide all ExtenderItems that are contained in this group, and shows the summary item.
Definition at line 131 of file extendergroup.cpp.
void Plasma::ExtenderGroup::expandGroup | ( | ) | [slot] |
Expands this group to show all ExtenderItems that are contained in this group.
Definition at line 117 of file extendergroup.cpp.
QList< ExtenderItem * > Plasma::ExtenderGroup::items | ( | ) | const |
- Returns:
- a list of items that belong to this group.
Definition at line 88 of file extendergroup.cpp.
void Plasma::ExtenderGroup::setAutoHide | ( | bool | autoHide | ) |
- Parameters:
-
autoHide whether or not this item hides itself if less then 2 items belong to this group.
Definition at line 105 of file extendergroup.cpp.
Property Documentation
bool Plasma::ExtenderGroup::autoHide [read, write] |
Definition at line 53 of file extendergroup.h.
The documentation for this class was generated from the following files: