| 53 | } |
| 54 | |
| 55 | void 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 | |
| 63 | int RoomListModel::rowCount(const QModelIndex& parent) const |
| 64 | { |
nothing calls this directly
no outgoing calls
no test coverage detected