summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateu Batle <mateu.batle@collabora.co.uk>2011-08-02 15:43:49 -0500
committerMateu Batle <mateu.batle@collabora.co.uk>2011-08-02 15:43:49 -0500
commit4126ecff83393e158576b1df5a073e1438651d59 (patch)
tree68e628cc84debc42802187c7158717a79e4ef6ba
parentcadd7f6a006c42530069563f215f59a2fd9f02f8 (diff)
Emit signal capabilitiesChanged when caps get updated
-rw-r--r--TelepathyQt4Yell/Models/contact-model-item.cpp1
-rw-r--r--TelepathyQt4Yell/Models/contact-model-item.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/TelepathyQt4Yell/Models/contact-model-item.cpp b/TelepathyQt4Yell/Models/contact-model-item.cpp
index 564d831..9e1986c 100644
--- a/TelepathyQt4Yell/Models/contact-model-item.cpp
+++ b/TelepathyQt4Yell/Models/contact-model-item.cpp
@@ -203,6 +203,7 @@ Tp::ContactPtr ContactModelItem::contact() const
void ContactModelItem::onCapabilitiesChanged()
{
mPriv->mCallContactCaps.updateRequestableChannelClasses(mPriv->mContact->capabilities().allClassSpecs().bareClasses());
+ emit capabilitiesChanged();
}
}
diff --git a/TelepathyQt4Yell/Models/contact-model-item.h b/TelepathyQt4Yell/Models/contact-model-item.h
index b6fd72e..4dbb5b1 100644
--- a/TelepathyQt4Yell/Models/contact-model-item.h
+++ b/TelepathyQt4Yell/Models/contact-model-item.h
@@ -46,6 +46,9 @@ public:
Tp::ContactPtr contact() const;
+Q_SIGNALS:
+ void capabilitiesChanged();
+
public Q_SLOTS:
void onChanged();
void onCapabilitiesChanged();