/**
* @brief Class for tab bar
*
- * @author Pekka Nissinen - pekka.nissinen@ixonos.com
+ * @author Pekka Nissinen - pekka.nissinen (at) ixonos.com
*/
class PanelTabBar : public QWidget
{
*/
void removeTab(int index);
+ /**
+ * @brief Returns all tabs.
+ *
+ * @return All tabs
+ */
+ QButtonGroup *tabs() const;
+
private:
/**
* @brief Initializes and formats tab buttons layout
/**
* @brief This slot selects a tab at given index
+ *
+ * @param index Index of the tab
*/
void selectTab(int index);
******************************************************************************/
signals:
/**
- * @brief This signal is emitted whenever the current tab index changes
+ * @brief This signal is emitted whenever the current tab changes
+ *
+ * @param index Index of the new tab
*/
void currentChanged(int index);
/**
+ * @brief This signal is emitted when tabs are added or removed
+ */
+ void sizeChangeRequested();
+
+ /**
* @brief This signal is emitted whenever user wants to close a tab
+ *
+ * @param index Index of the currently active tab
*/
void tabCloseRequested(int index);