QTableView: fix cornerWidget connection
A click on the corner widget should select all items, not reset the selection. This was accidentally added with 3e144bdc7484968dcccbda8f35ad802c7fd7a42e. Pick-to: 6.7 Fixes: QTBUG-124267 Change-Id: Ie20b7cf0ff730214dca80116ad888f42c2b7a670 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
60f15da3ca
commit
56ec0f94b3
@ -595,7 +595,7 @@ void QTableViewPrivate::init()
|
|||||||
cornerWidget->setFocusPolicy(Qt::NoFocus);
|
cornerWidget->setFocusPolicy(Qt::NoFocus);
|
||||||
cornerWidgetConnection = QObject::connect(
|
cornerWidgetConnection = QObject::connect(
|
||||||
cornerWidget, &QTableCornerButton::clicked,
|
cornerWidget, &QTableCornerButton::clicked,
|
||||||
q, &QTableView::reset);
|
q, &QTableView::selectAll);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user