this, SIGNAL(findFriend(GeoCoordinate)));
connect(m_friendListView, SIGNAL(listItemSelectionChanged()),
- this, SLOT(setRouteButtonDisabled()));
-
- connect(m_friendListView, SIGNAL(listItemSelectionChanged()),
this, SLOT(onListItemSelectionChanged()));
// --- FOOTER, TEXT BASED FILTERING ---
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()));
clearFiltering();
m_friendListView->clearItemSelection();
- setRouteButtonDisabled();
}
void FriendListPanel::anyPanelOpened()
clearFiltering();
m_friendListView->clearItemSelection();
- setRouteButtonDisabled();
}
void FriendListPanel::routeToSelectedFriend()
}
}
-void FriendListPanel::setRouteButtonDisabled()
-{
- qDebug() << __PRETTY_FUNCTION__;
-
- m_routeButton->setDisabled(m_friendListView->selectedItems().isEmpty());
-}
-
void FriendListPanel::showEvent(QShowEvent *event)
{
qDebug() << __PRETTY_FUNCTION__;