Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

ThemeStatusItem Class Reference
[QtBaseModule]

The ThemeStatusItem class represents a status indicator in a ThemedView. More...

    #include <ThemeStatusItem>

Inherits ThemePixmapItem.

Public Functions

Additional Inherited Members


Detailed Description

The ThemeStatusItem class represents a status indicator in a ThemedView.

The ThemeStatusItem class implements the status element from the theme XML.

A ThemeStatusItem has 2 states on or off. You can see if a ThemeStatusItem is currently on using isOn() and set its state using setOn(). Whether the item is on or off determines the way the item looks to the user. Eg. the item may be greyed out when it is off or not appear at all.

See also status element.


Member Function Documentation

ThemeStatusItem::ThemeStatusItem ( ThemeItem * parent, ThemedView * view, const ThemeAttributes & atts )

Constructs a ThemeStatusItem. parent, view and atts are passed to the base class constructor.

ThemeStatusItem::~ThemeStatusItem ()

Destroys a ThemeStatusItem.

bool ThemeStatusItem::isOn () const

Returns true if the status item is currently on, false otherwise.

void ThemeStatusItem::setOn ( bool on )

Sets whether the item is on or off based on the flag on. The status item is displayed to the user differently depending on whether it is on or off.

See also isOn().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3