longscroll-qt  2.0.0
Create long scrollable widgets in Qt.
 All Classes Namespaces Functions Variables Properties
longscroll::ContentWidgetItemFactory Interface Referenceabstract

Interface for item factories used by ContentWidget to create display items. More...

Inheritance diagram for longscroll::ContentWidgetItemFactory:
[legend]

Public Member Functions

virtual QWidgetcreateItemWidget (ContentItemInfo const &info, int itemIndex, ContentWidget *cw)=0
 Creates a display widget for given item info. More...
 

Detailed Description

Interface for item factories used by ContentWidget to create display items.

Member Function Documentation

longscroll::ContentWidgetItemFactory::createItemWidget ( ContentItemInfo const &  info,
int  itemIndex,
ContentWidget cw 
)
pure virtual

Creates a display widget for given item info.

This method receives a pointer to the ContentWidget, this is useful for example if the widget vizualizes the selection in some way, to connect to selection changes. The ContentWidget will take ownership of the returned widget.

Parameters
infoItem info to be displayed.
itemIndexItem info index in ContentWidget's item info list.
cwThe ContentWidget.
Returns
A newly created QWidget.
See Also
ContentWidget::createItemWidget

Implemented in longscroll::ContentWidgetImageInfoFactory, and longscroll::ContentWidgetImageItemFactory.


The documentation for this interface was generated from the following files: