Mercurial > hg > svcore
diff data/model/ModelDataTableModel.cpp @ 763:2b3a8ae04597 qt5
Get remainder of svcore building with Qt5
author | Chris Cannam |
---|---|
date | Mon, 11 Mar 2013 13:55:22 +0000 |
parents | 1424aa29ae95 |
children | e802e550a1f2 |
line wrap: on
line diff
--- a/data/model/ModelDataTableModel.cpp Mon Mar 11 13:42:01 2013 +0000 +++ b/data/model/ModelDataTableModel.cpp Mon Mar 11 13:55:22 2013 +0000 @@ -129,7 +129,7 @@ QModelIndex ModelDataTableModel::index(int row, int column, const QModelIndex &parent) const { - return createIndex(row, column, 0); + return createIndex(row, column, (void *)0); } QModelIndex @@ -159,7 +159,7 @@ { if (!m_model) return createIndex(0, 0); int row = m_model->getRowForFrame(frame); - return createIndex(getSorted(row), 0, 0); + return createIndex(getSorted(row), 0, (void *)0); } size_t @@ -206,7 +206,7 @@ int current = getCurrentRow(); if (current != prevCurrent) { // std::cerr << "Current row changed from " << prevCurrent << " to " << current << " for underlying row " << m_currentRow << std::endl; - emit currentChanged(createIndex(current, 0, 0)); + emit currentChanged(createIndex(current, 0, (void *)0)); } emit layoutChanged(); }