QHeaderView: Fix columsMoved/rowsMoved connection to item model
Amends f8fc93fdef
and corrects wiring to
wrong slot.
Found-by: Marten Nordheim <marten.nordheim@qt.io>
Task-number: QTBUG-117698
Change-Id: I9833f7abc190e2f89b534ad5761db83ba5b895a3
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
d50bf18726
commit
c10a50ac3c
@ -343,7 +343,7 @@ void QHeaderView::setModel(QAbstractItemModel *model)
|
||||
: &QAbstractItemModel::rowsAboutToBeMoved,
|
||||
d, &QHeaderViewPrivate::sectionsAboutToBeMoved),
|
||||
QObjectPrivate::connect(model, hor ? &QAbstractItemModel::columnsMoved
|
||||
: &QAbstractItemModel::columnsMoved,
|
||||
: &QAbstractItemModel::rowsMoved,
|
||||
d, &QHeaderViewPrivate::sectionsMoved),
|
||||
|
||||
QObject::connect(model, &QAbstractItemModel::headerDataChanged,
|
||||
|
Loading…
Reference in New Issue
Block a user