Mercurial > hg > svcore
comparison data/model/ModelDataTableModel.cpp @ 947:cd42620e3f40
Fix some errant signals (the modelChanged with args are now modelChangedWithin)
author | Chris Cannam |
---|---|
date | Thu, 17 Jul 2014 14:50:31 +0100 |
parents | 59e7fe1b1003 |
children | cc27f35aa75c |
comparison
equal
deleted
inserted
replaced
946:2d34148d5d6e | 947:cd42620e3f40 |
---|---|
29 m_currentRow(0) | 29 m_currentRow(0) |
30 { | 30 { |
31 Model *baseModel = dynamic_cast<Model *>(m); | 31 Model *baseModel = dynamic_cast<Model *>(m); |
32 | 32 |
33 connect(baseModel, SIGNAL(modelChanged()), this, SLOT(modelChanged())); | 33 connect(baseModel, SIGNAL(modelChanged()), this, SLOT(modelChanged())); |
34 connect(baseModel, SIGNAL(modelChanged(int, int)), | 34 connect(baseModel, SIGNAL(modelChangedWithin(int, int)), |
35 this, SLOT(modelChanged(int, int))); | 35 this, SLOT(modelChangedWithin(int, int))); |
36 connect(baseModel, SIGNAL(aboutToBeDeleted()), | 36 connect(baseModel, SIGNAL(aboutToBeDeleted()), |
37 this, SLOT(modelAboutToBeDeleted())); | 37 this, SLOT(modelAboutToBeDeleted())); |
38 } | 38 } |
39 | 39 |
40 ModelDataTableModel::~ModelDataTableModel() | 40 ModelDataTableModel::~ModelDataTableModel() |
217 clearSort(); | 217 clearSort(); |
218 emit layoutChanged(); | 218 emit layoutChanged(); |
219 } | 219 } |
220 | 220 |
221 void | 221 void |
222 ModelDataTableModel::modelChanged(int, int) | 222 ModelDataTableModel::modelChangedWithin(int, int) |
223 { | 223 { |
224 //!!! inefficient | 224 //!!! inefficient |
225 clearSort(); | 225 clearSort(); |
226 emit layoutChanged(); | 226 emit layoutChanged(); |
227 } | 227 } |