Mercurial > hg > svgui
comparison widgets/ModelDataTableDialog.cpp @ 807:e4773943c9c1 warnfix_no_size_t
More unsigned/long and warning fixes
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 15:55:27 +0100 |
parents | 1a0dfcbffaf1 |
children | 4a578a360011 |
comparison
equal
deleted
inserted
replaced
806:4c8ca536b54f | 807:e4773943c9c1 |
---|---|
166 { | 166 { |
167 delete m_table; | 167 delete m_table; |
168 } | 168 } |
169 | 169 |
170 void | 170 void |
171 ModelDataTableDialog::userScrolledToFrame(unsigned long frame) | 171 ModelDataTableDialog::userScrolledToFrame(int frame) |
172 { | 172 { |
173 QModelIndex index = m_table->getModelIndexForFrame(frame); | 173 QModelIndex index = m_table->getModelIndexForFrame(frame); |
174 makeCurrent(index.row()); | 174 makeCurrent(index.row()); |
175 } | 175 } |
176 | 176 |
177 void | 177 void |
178 ModelDataTableDialog::playbackScrolledToFrame(unsigned long frame) | 178 ModelDataTableDialog::playbackScrolledToFrame(int frame) |
179 { | 179 { |
180 if (m_trackPlayback) { | 180 if (m_trackPlayback) { |
181 QModelIndex index = m_table->getModelIndexForFrame(frame); | 181 QModelIndex index = m_table->getModelIndexForFrame(frame); |
182 makeCurrent(index.row()); | 182 makeCurrent(index.row()); |
183 } | 183 } |
246 // SVDEBUG << "ModelDataTableDialog::viewClicked: " << index.row() << ", " << index.column() << endl; | 246 // SVDEBUG << "ModelDataTableDialog::viewClicked: " << index.row() << ", " << index.column() << endl; |
247 emit scrollToFrame(m_table->getFrameForModelIndex(index)); | 247 emit scrollToFrame(m_table->getFrameForModelIndex(index)); |
248 } | 248 } |
249 | 249 |
250 void | 250 void |
251 ModelDataTableDialog::viewPressed(const QModelIndex &index) | 251 ModelDataTableDialog::viewPressed(const QModelIndex &) |
252 { | 252 { |
253 // SVDEBUG << "ModelDataTableDialog::viewPressed: " << index.row() << ", " << index.column() << endl; | 253 // SVDEBUG << "ModelDataTableDialog::viewPressed: " << index.row() << ", " << index.column() << endl; |
254 } | 254 } |
255 | 255 |
256 void | 256 void |
257 ModelDataTableDialog::currentChanged(const QModelIndex ¤t, | 257 ModelDataTableDialog::currentChanged(const QModelIndex ¤t, |
258 const QModelIndex &previous) | 258 const QModelIndex &) |
259 { | 259 { |
260 // SVDEBUG << "ModelDataTableDialog::currentChanged: from " | 260 // SVDEBUG << "ModelDataTableDialog::currentChanged: from " |
261 // << previous.row() << ", " << previous.column() | 261 // << previous.row() << ", " << previous.column() |
262 // << " to " << current.row() << ", " << current.column() | 262 // << " to " << current.row() << ", " << current.column() |
263 // << endl; | 263 // << endl; |