Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QThemeItem class is the base class of all items in a QThemedView. More...
#include <QThemeItem>
Inherits QGraphicsItem.
Inherited by QThemeExclusiveItem, QThemeGroupItem, QThemeImageItem, QThemeLayoutItem, QThemePageItem, QThemePluginItem, QThemeRectItem, QThemeTextItem, and QThemeWidgetItem.
This class was introduced in Qtopia 4.4.
The QThemeItem class is the base class of all items in a QThemedView.
QThemeItem encapsulates functionality common to all theme items. It manages common attributes such as rect, whether the item is active, visible, layout attributes, user interactivity and so on.
See also QThemedView.
Constructs a QThemeItem. The parent is passed to the base class constructor.
Destroys the QThemeItem.
Called when the item has finished being constructed from the themed view XML.
Reimplement to perform any required calculations on the item's data with the knowledge that the data is complete.
Subclasses should always call the base class version of this function so that proper construction occurs at all levels.
Called by ThemedView for a QExpressionEvaluator instance when it emits the Expression::termsChanged() signal. expression is an expression registered through a call to QThemedView::registerExpression().
The Expression expression will be an expression that belongs to this item.
Subclasses should make sure they call the base class version of this function should they not know about expression.
Returns the full vspath for this item. The full vspath is this item's vspath appended to the parent item's full vspath. A trailing slash is always included.
Returns true if the item is active. Returns false otherwise.
Returns true if string is an expression, false otherwise.
Lays out the item.
The item calcuates its actual position and size based on the abstract geometry information specified for the rect attribute in the themed view XML.
Loads the item using the XML reader.
Loads the item's attributes using the XML reader.
Reimplement this function to read attributes specific to this item.
Loads the item's children using the XML reader.
The default implementation loads any kind of item.
Reimplement this function if you want to load specific children.
Returns the item's name.
When subclassing QThemeItem, call this method in the constructor. It is required by qthemeitem_cast() to return the correct type.
Sets the size of the item to width and height.
Sets this item to be active if active is true, otherwise sets the item to be inactive.
See also isActive().
Sets the current state of the item. By default, an item is in the state 'default'.
See also state().
Sets the valuespace path of this item.
See also valueSpacePath().
Returns the current state of the item.
See also setState().
Strips the expression indicators from the expression s.
isExpression(s) must return true, or this function will abort.
Returns a pointer to QThemeItem if item is a QThemeItem or one of its subclass. Returns 0 otherwise.
Returns the themed view displaying this item.
Returns the valuespace path of the item.
See also setValueSpacePath().
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |