summaryrefslogtreecommitdiffstats
path: root/doc/src/examples/spinboxdelegate.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/examples/spinboxdelegate.qdoc')
-rw-r--r--doc/src/examples/spinboxdelegate.qdoc10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/src/examples/spinboxdelegate.qdoc b/doc/src/examples/spinboxdelegate.qdoc
index 3f7de678a5..b36176b042 100644
--- a/doc/src/examples/spinboxdelegate.qdoc
+++ b/doc/src/examples/spinboxdelegate.qdoc
@@ -1,8 +1,7 @@
/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
+** Contact: http://www.qt-project.org/
**
** This file is part of the documentation of the Qt Toolkit.
**
@@ -21,6 +20,7 @@
**
**
**
+**
** $QT_END_LICENSE$
**
****************************************************************************/
@@ -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
argument: