Document the default value for QAbstractItemView::editTriggers

Change-Id: I4456dcfcecf739299533167867208e1943bc4a26
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
(cherry picked from commit 408959c8c85badfcd374b21fb2e6071c40e5cba4)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
David Faure 2025-02-22 15:07:18 +01:00 committed by Qt Cherry-pick Bot
parent 9593852f24
commit ebbf2d298b

View File

@ -1263,6 +1263,12 @@ void QAbstractItemView::doItemsLayout()
\l{EditTrigger}, combined using the OR \l{EditTrigger}, combined using the OR
operator. The view will only initiate the editing of an item if the operator. The view will only initiate the editing of an item if the
action performed is set in this property. action performed is set in this property.
The default value is:
\list
\li for QTableView: DoubleClicked|AnyKeyPressed
\li for all other views: DoubleClicked|EditKeyPressed
\endlist
*/ */
void QAbstractItemView::setEditTriggers(EditTriggers actions) void QAbstractItemView::setEditTriggers(EditTriggers actions)
{ {