Calendar widget should hide when clicking somewhere else

This patch adds a event filter to hide the calendar
widget when it loses focus

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-06-30 18:20:17 -03:00 committed by Dirk Hohndel
parent 927bc5d601
commit facf6e4b59
2 changed files with 15 additions and 2 deletions

View file

@ -104,6 +104,7 @@ protected:
void focusOutEvent(QFocusEvent *);
void keyPressEvent(QKeyEvent *);
void changeEvent(QEvent *);
bool eventFilter(QObject *, QEvent *);
signals:
void dateChanged(const QDate& date);
private: