Commit 43431b23 authored by David Edmundson's avatar David Edmundson

Connect contact signals in chat plasmoid

REVIEW: 117537
BUG: 333373
parent 129b6170
......@@ -69,6 +69,12 @@ Conversation::Conversation(const Tp::TextChannelPtr &channel,
} else {
d->isGroupChat = false;
d->targetContact = KTp::ContactPtr::qObjectCast(channel->targetContact());
connect(d->targetContact.constData(), SIGNAL(aliasChanged(QString)), SIGNAL(titleChanged()));
connect(d->targetContact.constData(), SIGNAL(presenceChanged(Tp::Presence)), SIGNAL(presenceIconChanged()));
connect(d->targetContact.constData(), SIGNAL(avatarDataChanged(Tp::AvatarData)), SIGNAL(avatarChanged()));
connect(d->targetContact.constData(), SIGNAL(aliasChanged(QString)),
this, SLOT(onTargetContactAliasChanged(QString)));
connect(d->targetContact.constData(), SIGNAL(avatarDataChanged(Tp::AvatarData)),
......
......@@ -35,9 +35,9 @@ class Conversation : public QObject
Q_PROPERTY(MessagesModel *messages READ messages CONSTANT)
Q_PROPERTY(bool valid READ isValid NOTIFY validityChanged)
Q_PROPERTY(QString title READ title CONSTANT)
Q_PROPERTY(QIcon presenceIcon READ presenceIcon CONSTANT)
Q_PROPERTY(QIcon avatar READ avatar CONSTANT)
Q_PROPERTY(QString title READ title NOTIFY titleChanged)
Q_PROPERTY(QIcon presenceIcon READ presenceIcon NOTIFY presenceIconChanged)
Q_PROPERTY(QIcon avatar READ avatar NOTIFY avatarChanged)
Q_PROPERTY(Tp::AccountPtr account READ account CONSTANT)
Q_PROPERTY(KTp::ContactPtr targetContact READ targetContact CONSTANT)
......@@ -64,9 +64,9 @@ public:
Q_SIGNALS:
void validityChanged(bool isValid);
void avatarChanged(QIcon avatar);
void titleChanged(QString title);
void presenceIconChanged(QIcon icon);
void avatarChanged();
void titleChanged();
void presenceIconChanged();
void conversationCloseRequested();
public Q_SLOTS:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment