Skip to content

Commit

Permalink
Completed doc comments for errorlabel.h
Browse files Browse the repository at this point in the history
  • Loading branch information
JairajJangle committed Jul 20, 2020
1 parent 519694c commit 6d96265
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CustomWidgets/errorlabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

#include <QLabel>

/**
* @brief The ErrorLabel class Custom widget to show Colored label
* Color is set according to the level of info message: Warning, Error, Info...
*/
class ErrorLabel : public QLabel
{
Q_OBJECT
Expand All @@ -37,10 +41,17 @@ class ErrorLabel : public QLabel
sp_retain.setRetainSizeWhenHidden(true);
this->setSizePolicy(sp_retain);
}

/**
* @brief hide Hides the Error Label
*/
void hide()
{
this->setVisible(false);
}
/**
* @brief show Shows the Error Label
*/
void show()
{
this->setVisible(true);
Expand Down

0 comments on commit 6d96265

Please sign in to comment.