smartlist: update filter badges
Change-Id: I2529af030447c2a65d43013090b7517edadace46
Reviewed-by: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
diff --git a/conversationsfilterwidget.cpp b/conversationsfilterwidget.cpp
index 5a34e53..6d2bf76 100644
--- a/conversationsfilterwidget.cpp
+++ b/conversationsfilterwidget.cpp
@@ -29,13 +29,18 @@
{
}
-void ConversationsFilterWidget::resizeEvent(QResizeEvent * event)
+void ConversationsFilterWidget::updateBadges()
{
using namespace lrc::api::profile;
updateNotifier(Type::RING);
updateNotifier(Type::PENDING);
}
+void ConversationsFilterWidget::resizeEvent(QResizeEvent * event)
+{
+ updateBadges();
+}
+
void
ConversationsFilterWidget::updateNotifier(lrc::api::profile::Type typeFilter)
{