The first "kind of" working version of the new panels
[situare] / src / ui / userinfopanel.cpp
index 59ddfa8..f6cbb24 100644 (file)
 #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);
@@ -48,11 +46,8 @@ UserInfoPanel::UserInfoPanel(QWidget *parent)
     userInfoScroll->viewport()->setAutoFillBackground(false);
     userInfoScroll->widget()->setAutoFillBackground(false);
 
-    m_panelVBox->addWidget(userInfoScroll);
-    m_panelVBox->setContentsMargins(USERPANEL_MARGIN_LEFT, 0, USERPANEL_MARGIN_RIGHT, 0);
-
-    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()));