Finalised the classes for panels
[situare] / src / ui / mapviewscreen.cpp
index 4e9f398..08e29d0 100644 (file)
@@ -39,8 +39,8 @@ MapViewScreen::MapViewScreen(QWidget *parent)
 
     FriendListPanel *friendsListPanel = new FriendListPanel(this);
     UserInfoPanel *userPanel = new UserInfoPanel(this);
-    PanelSideBar *userPanelSidebar = new PanelSideBar(this, "left");
-    PanelSideBar *friendsListPanelSidebar = new PanelSideBar(this, "right");
+    PanelSideBar *userPanelSidebar = new PanelSideBar(this, LEFT);
+    PanelSideBar *friendsListPanelSidebar = new PanelSideBar(this, RIGHT);
 
     connect(mapView, SIGNAL(viewScrolled(QPoint)),
             mapEngine, SLOT(setLocation(QPoint)));
@@ -65,9 +65,8 @@ MapViewScreen::MapViewScreen(QWidget *parent)
     connect(mapView, SIGNAL(viewResizedNewSize(int,int)),
             friendsListPanelSidebar, SLOT(reDrawSidebar(int,int)));
 
-
-    connect(this, SIGNAL(SIG_friendsLocationsReady(QList<User*>&)),
-            friendsListPanel, SLOT(friendInfoReceived(QList<User*>&)));
+//    connect(this, SIGNAL(SIG_friendsLocationsReady(QList<User*>&)),
+//            friendsListPanel, SLOT(friendInfoReceived(QList<User*>&)));
 
 
     QHBoxLayout *mapViewLayout = new QHBoxLayout;