connect(m_clearFilterButton, SIGNAL(clicked()),
this, SLOT(clearFriendListFilter()));
-
-// connect(this, SIGNAL(panelOpened()),
-// this, SLOT(clearFriendListFilter()));
}
void FriendListPanel::friendImageReady(User *user)
m_tabbedPanel->addTab(m_userInfoPanel, QIcon(":/res/images/user_info.png"));
m_tabbedPanel->addTab(m_friendsListPanel, QIcon(":/res/images/friend_list.png"));
- connect(m_tabbedPanel, SIGNAL(panelOpened()),
+ connect(m_tabbedPanel, SIGNAL(tabChanged()),
m_friendsListPanel, SLOT(clearFriendListFilter()));
connect(m_mapView, SIGNAL(viewResized(QSize)),
if(m_activeTab == -1) {
m_activeTab = index;
m_panelWidgetStack->setCurrentIndex(index);
+ emit tabChanged();
emit toggleState();
} else if(m_activeTab == index) {
m_activeTab = -1;
} else {
m_activeTab = index;
m_panelWidgetStack->setCurrentIndex(index);
+ emit tabChanged();
}
}
void panelOpened();
/**
+ * @brief Signal that is sent when active tab has changed
+ */
+ void tabChanged();
+
+ /**
* @brief Signal that is sent to state machine when state must be changed
*
* @sa openPanel