single window mode

This commit is contained in:
Blue 2020-04-11 23:00:15 +03:00
parent b95028e33e
commit a77dfd191a
13 changed files with 345 additions and 74 deletions

View file

@ -386,6 +386,16 @@ bool Models::Roster::ElId::operator <(const Models::Roster::ElId& other) const
}
}
bool Models::Roster::ElId::operator!=(const Models::Roster::ElId& other) const
{
return !(operator == (other));
}
bool Models::Roster::ElId::operator==(const Models::Roster::ElId& other) const
{
return (account == other.account) && (name == other.name);
}
void Models::Roster::onAccountDataChanged(const QModelIndex& tl, const QModelIndex& br, const QVector<int>& roles)
{
if (tl.column() == 0) {

View file

@ -109,6 +109,8 @@ public:
const QString name;
bool operator < (const ElId& other) const;
bool operator == (const ElId& other) const;
bool operator != (const ElId& other) const;
};
};