longscroll-qt
2.0.0
Create long scrollable widgets in Qt.
|
Interface for item factories used by ContentWidget to create display items. More...
Public Member Functions | |
virtual QWidget * | createItemWidget (ContentItemInfo const &info, int itemIndex, ContentWidget *cw)=0 |
Creates a display widget for given item info. More... | |
Interface for item factories used by ContentWidget to create display items.
|
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.
info | Item info to be displayed. |
itemIndex | Item info index in ContentWidget's item info list. |
cw | The ContentWidget. |
Implemented in longscroll::ContentWidgetImageInfoFactory, and longscroll::ContentWidgetImageItemFactory.