Diffstat (limited to 'doc/src/examples/spinboxdelegate.qdoc')
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/src/examples/spinboxdelegate.qdoc b/doc/src/examples/spinboxdelegate.qdoc
index c00f014afe..b36176b042 100644
@@ -55,10 +55,14 @@
create an editor widget, display it at the correct location in a view,
and communicate with a model. Custom delegates can also provide their
own painting code by reimplementing the \c paintEvent() function.
+ Furthermore it is also possible to reuse (and avoid deleting) the editor
+ widget by reimplementing the \a destroyEditor() function. A reused widget
+ could be a mutable member created in the constructor and deleted in
+ the destructor.
\section1 SpinBoxDelegate Class Implementation
- Since the delegate is stateless, the constructor only needs to
+ Delegates are often stateless. The constructor only needs to
call the base class's constructor with the parent QObject as its