X-Git-Url: https://git.johniez.cz/?p=aspt.git;a=blobdiff_plain;f=clubtab.cc;fp=clubtab.cc;h=887076ec419ae30c26595749672d0a1a33b0da3a;hp=8418ee99e80d7e923789e87bfb5caf011e79a820;hb=d5bb30030db3f96b903382a8f862c76d73fdc2b2;hpb=b935a223648e5014d780856903a1b421c7e84398 diff --git a/clubtab.cc b/clubtab.cc index 8418ee9..887076e 100644 --- a/clubtab.cc +++ b/clubtab.cc @@ -6,15 +6,26 @@ http://creativecommons.org/licenses/by-nc-nd/2.5/legalcode #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; @@ -59,10 +70,20 @@ void ClubTab::init() { 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;