From 56ccc5fdf6e2136df9c97b3ecdf7d1003549b546 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Wed, 19 Aug 2009 11:48:56 +1000 Subject: These docs shouldn't have been removed Still ought to have the docs that explain how to subclass QFxBasePositioner effectively, at least for internal reference. --- src/declarative/fx/qfxpositioners.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/declarative/fx/qfxpositioners.cpp b/src/declarative/fx/qfxpositioners.cpp index a164f67..1eb88fe 100644 --- a/src/declarative/fx/qfxpositioners.cpp +++ b/src/declarative/fx/qfxpositioners.cpp @@ -56,6 +56,19 @@ QT_BEGIN_NAMESPACE \internal \class QFxBasePositioner \ingroup group_layouts + \brief The QFxBasePositioner class provides a base for QFx layouts. + + To create a QFx Positioner, simply subclass QFxBasePositioner and implement + doLayout(), which is automatically called when the layout might need + updating. + + It is strongly recommended that in your implementation of doLayout() + that you use the move, remove and add transitions when those conditions + arise. You can use the applyAdd, applyMove and applyRemove functions + to do this easily. + + Note also that the subclass is responsible for adding the + spacing in between items. */ QFxBasePositioner::QFxBasePositioner(AutoUpdateType at, QFxItem *parent) : QFxItem(*(new QFxBasePositionerPrivate), parent) -- cgit v0.12