The first "kind of" working version of the new panels
[situare] / src / ui / userinfopanel.cpp
index ff41cef..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,9 +46,6 @@ 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(GeoCoordinate)),
             this, SIGNAL(findUser(GeoCoordinate)));