| 18 | namespace QodeAssist::Chat { |
| 19 | |
| 20 | ChatModel::ChatModel(QObject *parent) |
| 21 | : QAbstractListModel(parent) |
| 22 | { |
| 23 | connect(&Context::ChangesManager::instance(), |
| 24 | &Context::ChangesManager::fileEditApplied, |
| 25 | this, |
| 26 | &ChatModel::onFileEditApplied); |
| 27 | |
| 28 | connect(&Context::ChangesManager::instance(), |
| 29 | &Context::ChangesManager::fileEditRejected, |
| 30 | this, |
| 31 | &ChatModel::onFileEditRejected); |
| 32 | |
| 33 | connect(&Context::ChangesManager::instance(), |
| 34 | &Context::ChangesManager::fileEditArchived, |
| 35 | this, |
| 36 | &ChatModel::onFileEditArchived); |
| 37 | } |
| 38 | |
| 39 | int ChatModel::rowCount(const QModelIndex &parent) const |
| 40 | { |
nothing calls this directly
no outgoing calls
no test coverage detected