QTableView: fix cornerWidget connection

A click on the corner widget should select all items, not reset the
selection. This was accidentally added with
3e144bdc74.

Pick-to: 6.7
Fixes: QTBUG-124267
Change-Id: Ie20b7cf0ff730214dca80116ad888f42c2b7a670
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
bb10
Christian Ehrlicher 2024-04-12 21:47:34 +02:00
parent 60f15da3ca
commit 56ec0f94b3
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ void QTableViewPrivate::init()
cornerWidget->setFocusPolicy(Qt::NoFocus);
cornerWidgetConnection = QObject::connect(
cornerWidget, &QTableCornerButton::clicked,
q, &QTableView::reset);
q, &QTableView::selectAll);
#endif
}