# HG changeset patch # User Chris Cannam # Date 1213089102 0 # Node ID 12b7bf0c39151c5ff89548ab49052c0915b6913d # Parent a00902d5f0aba52cd5e32b0f3b171b1f9c2b7799 * Compile fixes diff -r a00902d5f0ab -r 12b7bf0c3915 data/model/ModelDataTableModel.cpp --- a/data/model/ModelDataTableModel.cpp Mon Jun 09 16:01:50 2008 +0000 +++ b/data/model/ModelDataTableModel.cpp Tue Jun 10 09:11:42 2008 +0000 @@ -19,6 +19,8 @@ #include "SparseOneDimensionalModel.h" #include "SparseModel.h" +#include + ModelDataTableModel::ModelDataTableModel(Model *m) : m_model(m) { @@ -99,7 +101,7 @@ case 1: std::cerr << "Returning frame " << frame << std::endl; - return QVariant(frame); //!!! RealTime + return QVariant(int(frame)); case 2: if (dynamic_cast(m_model)) { @@ -168,7 +170,7 @@ PointListType; typedef typename ModelType::EditCommand EditCommandType; - ModelType *sm = dynamic_cast(m_model); + ModelType *sm = dynamic_cast(m_model); const PointListType &points = sm->getPoints(frame); // it is possible to have more than one point at the same frame