# HG changeset patch # User Chris Cannam # Date 1213200805 0 # Node ID 33c2f268c9505b6163bbdfd7f41953a55fb89f95 # Parent 592d692b4f8ba612edcf2cdacd1d940d2554f562 * reorganise tabular data editor model support diff -r 592d692b4f8b -r 33c2f268c950 widgets/AudioDial.cpp --- a/widgets/AudioDial.cpp Wed Jun 11 12:54:18 2008 +0000 +++ b/widgets/AudioDial.cpp Wed Jun 11 16:13:25 2008 +0000 @@ -515,7 +515,7 @@ tr("Enter new value"), tr("Enter a new value from %1 to %2:") .arg(minimum()).arg(maximum()), - value(), minimum(), maximum(), pageStep(), &ok); + value(), minimum(), maximum(), singleStep(), &ok); if (ok) { setValue(newPosition); diff -r 592d692b4f8b -r 33c2f268c950 widgets/ModelDataTableDialog.cpp --- a/widgets/ModelDataTableDialog.cpp Wed Jun 11 12:54:18 2008 +0000 +++ b/widgets/ModelDataTableDialog.cpp Wed Jun 11 16:13:25 2008 +0000 @@ -16,6 +16,7 @@ #include "ModelDataTableDialog.h" #include "data/model/ModelDataTableModel.h" +#include "data/model/TabularModel.h" #include "CommandHistory.h" @@ -29,7 +30,7 @@ #include -ModelDataTableDialog::ModelDataTableDialog(Model *model, QWidget *parent) : +ModelDataTableDialog::ModelDataTableDialog(TabularModel *model, QWidget *parent) : QDialog(parent) { setWindowTitle(tr("Data Editor")); @@ -54,7 +55,7 @@ m_tableView->verticalHeader()->hide(); // m_tableView->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents); // m_tableView->setShowGrid(false); -// m_tableView->setSortingEnabled(true); + m_tableView->setSortingEnabled(true); m_table = new ModelDataTableModel(model); m_tableView->setModel(m_table); diff -r 592d692b4f8b -r 33c2f268c950 widgets/ModelDataTableDialog.h --- a/widgets/ModelDataTableDialog.h Wed Jun 11 12:54:18 2008 +0000 +++ b/widgets/ModelDataTableDialog.h Wed Jun 11 16:13:25 2008 +0000 @@ -18,7 +18,7 @@ #include -class Model; +class TabularModel; class ModelDataTableModel; class QTableView; class QModelIndex; @@ -29,7 +29,7 @@ Q_OBJECT public: - ModelDataTableDialog(Model *model, QWidget *parent = 0); + ModelDataTableDialog(TabularModel *model, QWidget *parent = 0); ~ModelDataTableDialog(); signals: