+ // --- MAIN LAYOUT ---
+ QVBoxLayout *friendListPanelLayout = new QVBoxLayout();
+ friendListPanelLayout->setMargin(0);
+ friendListPanelLayout->setSpacing(0);
+ setLayout(friendListPanelLayout);
+
+ friendListPanelLayout->addWidget(m_headerWidget);
+ friendListPanelLayout->addLayout(listViewLayout);
+ friendListPanelLayout->addLayout(footerLayout);
+
+ // --- CONTEXT BUTTONS ---
+ m_routeButton = new ImageButton(":res/images/route_to_friend.png",
+ ":res/images/route_to_friend_s.png",
+ ":res/images/route_to_friend_d.png", this);
+ m_routeButton->setDisabled(true);
+ connect(m_routeButton, SIGNAL(clicked()),
+ this, SLOT(routeToSelectedFriend()));
+
+ m_showContactButton = new ImageButton(":res/images/contact_btn.png",
+ ":res/images/contact_btn_s.png",
+ ":res/images/contact_btn_d.png", this);