Mercurial > hg > svcore
diff data/model/ModelDataTableModel.cpp @ 1599:ce185d4dd408 bqaudiostream
Merge from default branch
author | Chris Cannam |
---|---|
date | Wed, 23 Jan 2019 14:43:43 +0000 |
parents | 70e172e6cc59 |
children | 91a194e2d80b |
line wrap: on
line diff
--- a/data/model/ModelDataTableModel.cpp Wed Jan 23 10:31:40 2019 +0000 +++ b/data/model/ModelDataTableModel.cpp Wed Jan 23 14:43:43 2019 +0000 @@ -122,7 +122,7 @@ QModelIndex ModelDataTableModel::index(int row, int column, const QModelIndex &) const { - return createIndex(row, column, (void *)0); + return createIndex(row, column, (void *)nullptr); } QModelIndex @@ -153,7 +153,7 @@ { if (!m_model) return createIndex(0, 0); int row = m_model->getRowForFrame(frame); - return createIndex(getSorted(row), 0, (void *)0); + return createIndex(getSorted(row), 0, (void *)nullptr); } sv_frame_t @@ -200,7 +200,7 @@ int current = getCurrentRow(); if (current != prevCurrent) { // cerr << "Current row changed from " << prevCurrent << " to " << current << " for underlying row " << m_currentRow << endl; - emit currentChanged(createIndex(current, 0, (void *)0)); + emit currentChanged(createIndex(current, 0, (void *)nullptr)); } emit layoutChanged(); } @@ -232,10 +232,10 @@ int row0 = ix0.row(); int row1 = ix1.row(); if (row0 > 0) { - ix0 = createIndex(row0 - 1, ix0.column(), (void *)0); + ix0 = createIndex(row0 - 1, ix0.column(), (void *)nullptr); } if (row1 + 1 < rowCount()) { - ix1 = createIndex(row1 + 1, ix1.column(), (void *)0); + ix1 = createIndex(row1 + 1, ix1.column(), (void *)nullptr); } SVDEBUG << "emitting dataChanged from row " << ix0.row() << " to " << ix1.row() << endl; emit dataChanged(ix0, ix1); @@ -246,7 +246,7 @@ void ModelDataTableModel::modelAboutToBeDeleted() { - m_model = 0; + m_model = nullptr; emit modelRemoved(); }