Mercurial > hg > svgui
diff widgets/ModelDataTableDialog.cpp @ 1479:9bf8aa2916e9 by-id
Further ModelId updates
author | Chris Cannam |
---|---|
date | Wed, 03 Jul 2019 14:20:42 +0100 |
parents | d39db4673676 |
children | 873ff035364c |
line wrap: on
line diff
--- a/widgets/ModelDataTableDialog.cpp Wed Jul 03 08:55:02 2019 +0100 +++ b/widgets/ModelDataTableDialog.cpp Wed Jul 03 14:20:42 2019 +0100 @@ -36,7 +36,7 @@ #include <iostream> -ModelDataTableDialog::ModelDataTableDialog(TabularModel *model, +ModelDataTableDialog::ModelDataTableDialog(ModelId tabularModelId, QString title, QWidget *parent) : QMainWindow(parent), m_currentRow(0), @@ -119,7 +119,7 @@ m_tableView->setSortingEnabled(true); m_tableView->sortByColumn(0, Qt::AscendingOrder); - m_table = new ModelDataTableModel(model); + m_table = new ModelDataTableModel(tabularModelId); m_tableView->setModel(m_table); m_tableView->horizontalHeader()->setStretchLastSection(true);