MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / ChatModel

Method ChatModel

ChatView/ChatModel.cpp:20–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace QodeAssist::Chat {
19
20ChatModel::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
39int ChatModel::rowCount(const QModelIndex &parent) const
40{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected