#include "clubtab.h"
+/**
+ * Club Tab constructor.
+ */
ClubTab::ClubTab(QWidget *parent) : QWidget(parent) {
init();
}
+/**
+ * Club Tab destructor.
+ */
ClubTab::~ClubTab() {
delete label;
delete mainLayout;
}
+/**
+ * \brief Club Tab initializer.
+ *
+ * Set text into Club Tab.
+ */
void ClubTab::init() {
mainLayout = new QVBoxLayout;
QString text;
setLayout(mainLayout);
}
+/**
+ * \brief Slot assigned to data change action.
+ *
+ * Rebuild UI with new data.
+ */
void ClubTab::dataChanged() {
rebuildUI();
}
+/**
+ * \brief Redraw UI with new data.
+ *
+ * Destroy old widget and initialize new one..
+ */
void ClubTab::rebuildUI() {
label->clear();
delete mainLayout;