diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-08-16 14:55:29 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-20 21:10:02 +0200 |
commit | eb0e960e74da6b799c4d8f95cb6a22412c4c9466 (patch) | |
tree | d5e2240655eb2e2755c76aba06e1c064a9ae3266 /src/widgets/itemviews/qabstractitemdelegate.cpp | |
parent | fe0a6e57a045b9db7ad812025ed65a6ba011c68d (diff) |
Fix the doc errors in itemmodels and itemviews.
Other errors remain, but they appear to be due to missing links
to QtCore documentation (a generic error not specific to itemviews).
Change-Id: I7b83380c3754c26d3d42be9ef0c0721ce3127562
Reviewed-by: Shawn Rutledge <shawn.rutledge@nokia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets/itemviews/qabstractitemdelegate.cpp')
-rw-r--r-- | src/widgets/itemviews/qabstractitemdelegate.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets/itemviews/qabstractitemdelegate.cpp b/src/widgets/itemviews/qabstractitemdelegate.cpp index 92cf0b0c38..6c02147c1d 100644 --- a/src/widgets/itemviews/qabstractitemdelegate.cpp +++ b/src/widgets/itemviews/qabstractitemdelegate.cpp @@ -245,14 +245,15 @@ QWidget *QAbstractItemDelegate::createEditor(QWidget *, /*! \since 5.0 - A function called when the editor is no longer needed and should be + A function called when the \a editor is no longer needed for \a index and should be destroyed. The default behavior is a call to deleteLater on the editor. It possible e.g. to avoid this delete by reimplementing this function. \sa createEditor() */ -void QAbstractItemDelegate::destroyEditor(QWidget *editor, const QModelIndex &) const +void QAbstractItemDelegate::destroyEditor(QWidget *editor, const QModelIndex &index) const { + Q_UNUSED(index); editor->deleteLater(); } |