diff options
author | Geir Vattekar <geir.vattekar@nokia.com> | 2011-03-25 11:42:24 (GMT) |
---|---|---|
committer | Geir Vattekar <geir.vattekar@nokia.com> | 2011-03-25 11:42:24 (GMT) |
commit | 71e6e429ea6afc97dfa6bb5d158a751a4a092eea (patch) | |
tree | 914970e5de78320a6f669e5fafc3b956d34f2e2b /src/gui/itemviews/qstyleditemdelegate.cpp | |
parent | cb9849a2bf5c48525e477852cd2cc24db6738029 (diff) | |
download | Qt-71e6e429ea6afc97dfa6bb5d158a751a4a092eea.zip Qt-71e6e429ea6afc97dfa6bb5d158a751a4a092eea.tar.gz Qt-71e6e429ea6afc97dfa6bb5d158a751a4a092eea.tar.bz2 |
Doc: Update to QStyledItemDelegate::displayText()
Task-number: QTBUG-7567
Diffstat (limited to 'src/gui/itemviews/qstyleditemdelegate.cpp')
-rw-r--r-- | src/gui/itemviews/qstyleditemdelegate.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/itemviews/qstyleditemdelegate.cpp b/src/gui/itemviews/qstyleditemdelegate.cpp index 0d1473d..eb54bac 100644 --- a/src/gui/itemviews/qstyleditemdelegate.cpp +++ b/src/gui/itemviews/qstyleditemdelegate.cpp @@ -263,6 +263,11 @@ QStyledItemDelegate::~QStyledItemDelegate() The default implementation uses the QLocale::toString to convert \a value into a QString. + + This function is not called for empty model indices, i.e., indices for which + the model returns an invalid QVariant. + + \sa QAbstractItemModel::data() */ QString QStyledItemDelegate::displayText(const QVariant &value, const QLocale& locale) const { |