*/
#include "userinfopanel.h"
+
#include "userinfo.h"
+#include "panelcommon.h"
UserInfoPanel::UserInfoPanel(QWidget *parent)
- : SidePanel(parent)
+ : QWidget(parent)
{
qDebug() << __PRETTY_FUNCTION__;
- setType(SidePanel::UserPanel);
-
m_userInfo = new UserInfo(this);
QWidget *userInfoView = new QWidget(this);
userInfoScroll->viewport()->setAutoFillBackground(false);
userInfoScroll->widget()->setAutoFillBackground(false);
- m_panelVBox->addWidget(userInfoScroll);
-
- connect(m_userInfo, SIGNAL(findUser(QPointF)),
- this, SIGNAL(findUser(QPointF)));
+ connect(m_userInfo, SIGNAL(findUser(GeoCoordinate)),
+ this, SIGNAL(findUser(GeoCoordinate)));
connect(m_userInfo,SIGNAL(requestReverseGeo()),
this, SIGNAL(requestReverseGeo()));
connect(m_userInfo, SIGNAL(refreshUserData()),
this, SIGNAL(refreshUserData()));
- connect(this, SIGNAL(updateWasSuccessful()),
+ connect(this, SIGNAL(clearUpdateLocationDialogData()),
m_userInfo, SLOT(clearUpdateLocationDialogData()));
- connect(this, SIGNAL(messageSendingFailed(QString)),
- m_userInfo, SIGNAL(messageSendingFailed(QString)));
-
- connect (this, SIGNAL(messageSendingFailed(QString)),
- m_userInfo, SLOT(verifyMessageUpdateFailure(QString)));
-
- connect (m_userInfo, SIGNAL(notificateUpdateFailing(QString)),
- this, SIGNAL(notificateUpdateFailing(QString)));
+ connect(m_userInfo, SIGNAL(notificateUpdateFailing(QString, bool)),
+ this, SIGNAL(notificateUpdateFailing(QString, bool)));
}
void UserInfoPanel::userDataReceived(User *user)