mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
make lint
This commit is contained in:
parent
efda94ca50
commit
6458614ea1
2 changed files with 6 additions and 3 deletions
|
@ -18,9 +18,11 @@ InviteesModel::addUser(QString mxid)
|
||||||
{
|
{
|
||||||
beginInsertRows(QModelIndex(), invitees_.count(), invitees_.count());
|
beginInsertRows(QModelIndex(), invitees_.count(), invitees_.count());
|
||||||
|
|
||||||
auto invitee = new Invitee{mxid, this};
|
auto invitee = new Invitee{mxid, this};
|
||||||
auto indexOfInvitee = invitees_.count();
|
auto indexOfInvitee = invitees_.count();
|
||||||
connect(invitee, &Invitee::userInfoLoaded, this, [this, indexOfInvitee]() { emit dataChanged(index(indexOfInvitee), index(indexOfInvitee)); });
|
connect(invitee, &Invitee::userInfoLoaded, this, [this, indexOfInvitee]() {
|
||||||
|
emit dataChanged(index(indexOfInvitee), index(indexOfInvitee));
|
||||||
|
});
|
||||||
|
|
||||||
invitees_.push_back(invitee);
|
invitees_.push_back(invitee);
|
||||||
|
|
||||||
|
|
|
@ -327,7 +327,8 @@ TimelineModel::TimelineModel(TimelineViewManager *manager, QString room_id, QObj
|
||||||
this->isSpace_ = create->content.type == mtx::events::state::room_type::space;
|
this->isSpace_ = create->content.type == mtx::events::state::room_type::space;
|
||||||
this->isEncrypted_ = cache::isRoomEncrypted(room_id_.toStdString());
|
this->isEncrypted_ = cache::isRoomEncrypted(room_id_.toStdString());
|
||||||
|
|
||||||
// this connection will simplify adding the plainRoomNameChanged() signal everywhere that it needs to be
|
// this connection will simplify adding the plainRoomNameChanged() signal everywhere that it
|
||||||
|
// needs to be
|
||||||
connect(this, &TimelineModel::roomNameChanged, this, &TimelineModel::plainRoomNameChanged);
|
connect(this, &TimelineModel::roomNameChanged, this, &TimelineModel::plainRoomNameChanged);
|
||||||
|
|
||||||
connect(
|
connect(
|
||||||
|
|
Loading…
Reference in a new issue