From 0b50196b7b4931b8f37e79824cf0fedf1ad0e901 Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Thu, 4 Jun 2009 14:24:23 +0200 Subject: api docs, add forgotten export --- src/qgraphicslistview.cpp | 29 ++++++++++++++++++++++++++--- src/qgraphicslistview.h | 2 +- 2 files changed, 27 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/qgraphicslistview.cpp b/src/qgraphicslistview.cpp index 38f495b..5dd5c5b 100644 --- a/src/qgraphicslistview.cpp +++ b/src/qgraphicslistview.cpp @@ -206,6 +206,7 @@ QtGraphicsListView *QtGraphicsListViewItem::view() const */ /*! + Destructor. */ QtGraphicsListViewItemCreatorBase::~QtGraphicsListViewItemCreatorBase() { @@ -216,7 +217,8 @@ QtGraphicsListViewItemCreatorBase::~QtGraphicsListViewItemCreatorBase() */ /*! - */ + This method basically does a recycle and a create in one go. +*/ QtGraphicsListViewItem *QtGraphicsListViewItemCreatorBase::reassign(int index, QtGraphicsListViewItem *item) { Q_ASSERT(item); @@ -225,15 +227,26 @@ QtGraphicsListViewItem *QtGraphicsListViewItemCreatorBase::reassign(int index, Q } /*! - */ + Give back the \a item to the creator pool of unused objects. +*/ void QtGraphicsListViewItemCreatorBase::recycle(QtGraphicsListViewItem *item) { delete item; } +/*! + \fn QtGraphicsListViewItem *QtGraphicsListViewItemCreatorBase::create(int index, QtGraphicsListView *view) + The view will call the create() method for every visible item it needs to display on screen. + This is a factory method to create the item, or reuse a previously recycled one after which + the ownership of the item lies with the caller. + + The item will be initialized to belong to \a view and will get the \a index set to it + allowing it to show the correct content. +*/ + /*! \class QtGraphicsListViewItemCreator - */ +*/ // QtGraphicsListViewPrivate @@ -1277,4 +1290,14 @@ void QtGraphicsListView::itemGeometryChanged(QtGraphicsListViewItem *item) } } +/*! + \class QtGraphicsListViewItemCreatorBase + \brief a factory baseclass to create QtGraphicsListViewItem objects for the QtGraphicsListView +*/ + +/*! + \class QtGraphicsListViewItemCreator + \brief a easy to use factory class to create QtGraphicsListViewItem objects for the QtGraphicsListView +*/ + #include "moc_qgraphicslistview.cpp" diff --git a/src/qgraphicslistview.h b/src/qgraphicslistview.h index 5dd65a5..7203f70 100644 --- a/src/qgraphicslistview.h +++ b/src/qgraphicslistview.h @@ -70,7 +70,7 @@ private: Q_DECLARE_PRIVATE(QtGraphicsListViewItem) }; -class QtGraphicsListViewItemCreatorBase +class Q_ITEMVIEWSNG_EXPORT QtGraphicsListViewItemCreatorBase { public: virtual ~QtGraphicsListViewItemCreatorBase(); -- cgit v1.2.3