mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Avoid recalculating header view sizes when irrelevant roles change
This commit is contained in:
@@ -98,7 +98,10 @@ void RDHeaderView::setModel(QAbstractItemModel *model)
|
||||
QObject::connect(model, &QAbstractItemModel::rowsRemoved, this, &RDHeaderView::rowsChanged);
|
||||
QObject::connect(model, &QAbstractItemModel::dataChanged,
|
||||
[this](const QModelIndex &topLeft, const QModelIndex &bottomRight,
|
||||
const QVector<int> &roles) { rowsChanged(QModelIndex(), 0, 0); });
|
||||
const QVector<int> &roles) {
|
||||
if(roles.contains(Qt::DisplayRole))
|
||||
rowsChanged(QModelIndex(), 0, 0);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user