Skip to content

Commit

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

#include <QLineEdit>

/**
* @brief The FocusAwareLineEdit class Custom widget to emit signal when there is
* focus change on this customized Line Edit widget
*/
class FocusAwareLineEdit : public QLineEdit
{
Q_OBJECT
Expand All @@ -31,9 +35,16 @@ class FocusAwareLineEdit : public QLineEdit
~FocusAwareLineEdit();

signals:
/**
* @brief focussed Signal emitted when focus on this widget is changed
* @param hasFocus True when this widget is in focus else false
*/
void focussed(bool hasFocus);

protected:
/*
* See QLineEdit docs by QT
*/
virtual void focusInEvent(QFocusEvent *e);
virtual void focusOutEvent(QFocusEvent *e);
};

0 comments on commit 87f3c41

Please sign in to comment.