MCPcopy Create free account
hub / github.com/davidar/tensor / addRoom

Method addRoom

client/models/roomlistmodel.cpp:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void RoomListModel::addRoom(QMatrixClient::Room* room)
56{
57 beginInsertRows(QModelIndex(), m_rooms.count(), m_rooms.count());
58 connect( room, &QMatrixClient::Room::namesChanged, this, &RoomListModel::namesChanged );
59 m_rooms.append(room);
60 endInsertRows();
61}
62
63int RoomListModel::rowCount(const QModelIndex& parent) const
64{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected