QStyledItemDelegate: Fix the event filter doc

The class actually also avoids filtering the tab and backtab keys for
the mentioned classes: QTextEdit and QPlainTextEdit.

So, the documentation needs to be extended to cover the hidden gems.

Pick-to: 6.4 6.3 6.2
Change-Id: Id993b055a105c6cfe5ee57be3863ce8bff448396
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Laszlo Papp 2022-06-24 14:00:15 +01:00
parent db342f42a4
commit 82309305a7

View File

@ -529,8 +529,9 @@ void QStyledItemDelegate::setItemEditorFactory(QItemEditorFactory *factory)
\li \uicontrol Esc \li \uicontrol Esc
\endlist \endlist
If the \a editor's type is QTextEdit or QPlainTextEdit then \uicontrol Enter and If the \a editor's type is QTextEdit or QPlainTextEdit then \uicontrol Tab,
\uicontrol Return keys are \e not handled. \uicontrol Backtab, \uicontrol Enter and \uicontrol Return keys are \e not
handled.
In the case of \uicontrol Tab, \uicontrol Backtab, \uicontrol Enter and \uicontrol Return In the case of \uicontrol Tab, \uicontrol Backtab, \uicontrol Enter and \uicontrol Return
key press events, the \a editor's data is committed to the model key press events, the \a editor's data is committed to the model