• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Plasma

Plasma::ExtenderGroup

Plasma::ExtenderGroup Class Reference

Allows for grouping of extender items. More...

#include <Plasma/ExtenderGroup>

Inheritance diagram for Plasma::ExtenderGroup:
Plasma::ExtenderItem QGraphicsWidget

List of all members.

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:
  • extendergroup.h
  • extendergroup.cpp

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal