135 |
fxSend.setName("New FX Send"); |
fxSend.setName("New FX Send"); |
136 |
m_fxSends.push_back(fxSend); |
m_fxSends.push_back(fxSend); |
137 |
createIndex(m_fxSends.size() - 1, 0); |
createIndex(m_fxSends.size() - 1, 0); |
138 |
#if QT_VERSION < 0x050000 |
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) |
139 |
QAbstractListModel::reset(); |
QAbstractListModel::reset(); |
140 |
#else |
#else |
141 |
QAbstractListModel::beginResetModel(); |
QAbstractListModel::beginResetModel(); |
163 |
FxSend *pFxSend = fxSend(index); |
FxSend *pFxSend = fxSend(index); |
164 |
if (!pFxSend) return; |
if (!pFxSend) return; |
165 |
pFxSend->setDeletion(true); |
pFxSend->setDeletion(true); |
166 |
#if QT_VERSION < 0x050000 |
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) |
167 |
QAbstractListModel::reset(); |
QAbstractListModel::reset(); |
168 |
#else |
#else |
169 |
QAbstractListModel::beginResetModel(); |
QAbstractListModel::beginResetModel(); |
183 |
fxSend.getFromSampler(); |
fxSend.getFromSampler(); |
184 |
m_fxSends.push_back(fxSend); |
m_fxSends.push_back(fxSend); |
185 |
} |
} |
186 |
#if QT_VERSION < 0x050000 |
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) |
187 |
QAbstractListModel::reset(); |
QAbstractListModel::reset(); |
188 |
#else |
#else |
189 |
QAbstractListModel::beginResetModel(); |
QAbstractListModel::beginResetModel(); |