doxygen comments
[aspt.git] / stadiumtab.cc
index 97f027b..82f4b37 100644 (file)
@@ -6,17 +6,26 @@ http://creativecommons.org/licenses/by-nc-nd/2.5/legalcode
 
 #include "stadiumtab.h"
 
+/**
+ * \brief Stadium Tab constructor.
+ */
 StadiumTab::StadiumTab(QWidget *parent) : QWidget(parent) {
        mainLayout = new QVBoxLayout;
        setLayout(mainLayout);
        init();
 }
 
+/**
+ * \brief Stadium Tab destructor.
+ */
 StadiumTab::~StadiumTab() {
        delete label;
        delete mainLayout;
 }
 
+/**
+ * \brief Print info about stadium from parsed data.
+ */
 void StadiumTab::init() {
        int cap = stadium.cap_n.toInt() + stadium.cap_e.toInt() + stadium.cap_w.toInt() + stadium.cap_s.toInt();
        QString text;
@@ -58,10 +67,16 @@ void StadiumTab::init() {
        mainLayout->update();
 }
 
+/**
+ * \brief Slot assigned to data change action.
+ */
 void StadiumTab::dataChanged() {
        rebuildUI();
 }
 
+/**
+ * \brief Destroy current UI and draw it again.
+ */
 void StadiumTab::rebuildUI() {
        mainLayout->removeWidget(label);
        delete label;