Added unit tests.
[situare] / src / ui / userinfopanel.cpp
index fc58695..6653b74 100644 (file)
@@ -118,6 +118,13 @@ UserInfoPanel::UserInfoPanel(QWidget *parent)
 
 }
 
+void UserInfoPanel::populatePopularTags(QHash<QString, QString> &popularTags)
+{
+    qDebug() << __PRETTY_FUNCTION__;
+
+    m_userInfo->setPopularTags(popularTags);
+}
+
 void UserInfoPanel::setImage(const QString &id, const QPixmap &image)
 {
     qDebug() << __PRETTY_FUNCTION__;
@@ -137,6 +144,8 @@ void UserInfoPanel::showTagsDialog()
     qDebug() << __PRETTY_FUNCTION__;
 
     m_userInfo->showTagsDialog();
+
+    emit requestPopularTags();
 }
 
 void UserInfoPanel::userDataReceived(User *user)