Commit 705f1920 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_EMIT

parent e23027aa
......@@ -524,7 +524,7 @@ void QGroupingProxyModel::dataChangedHandler(const QModelIndex &topLeft, const Q
QGroupingProxyModelGroup *mCurrentGroup = d->root->group(topLeft.row());
QModelIndex mTopLeft = index(mCurrentGroup->parent()->indexOf(mCurrentGroup), 0);
QModelIndex mBottomRight = index(mTopLeft.row(), d->sourceModel->columnCount());
emit dataChanged(mTopLeft, mBottomRight);
Q_EMIT dataChanged(mTopLeft, mBottomRight);
} else {
QGroupingProxyModelGroup *currentGroup = d->root->group(topLeft.row());
QGroupingProxyModelGroup *newGroup = d->root->matches(d->sourceModel->index(topLeft.row(), d->modelColumn).data(d->groupItemDataRole));
......@@ -616,7 +616,7 @@ void QGroupingProxyModel::setGroupSectionHeader(const QString &header)
{
if (header != m_groupSectionHeader) {
m_groupSectionHeader = header;
emit headerDataChanged(Qt::Horizontal, 0, 0);
Q_EMIT headerDataChanged(Qt::Horizontal, 0, 0);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment