summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Zander <thomas.zander@trolltech.com>2009-06-04 14:24:23 +0200
committerThomas Zander <thomas.zander@trolltech.com>2009-06-08 12:22:01 +0200
commit0b50196b7b4931b8f37e79824cf0fedf1ad0e901 (patch)
tree868014a15f9319f0854e7353cdc9c51221734739 /src
parent6af57ca44869a4e57a278ddf11ade7cec9d6f2ac (diff)
api docs, add forgotten export
Diffstat (limited to 'src')
-rw-r--r--src/qgraphicslistview.cpp29
-rw-r--r--src/qgraphicslistview.h2
2 files changed, 27 insertions, 4 deletions
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();