forked from blue/squawk
single window mode
This commit is contained in:
parent
b95028e33e
commit
a77dfd191a
13 changed files with 345 additions and 74 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue