summaryrefslogtreecommitdiffstats
path: root/qt-ui/simplewidgets.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-06-30 18:20:17 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-30 16:05:43 -0700
commitfacf6e4b595354f916edabd215b327196c111868 (patch)
treee719f5b52e06e31870c162602ca2938717488389 /qt-ui/simplewidgets.h
parent927bc5d60135f97f7241fbe9f77d745c6fceb517 (diff)
downloadsubsurface-facf6e4b595354f916edabd215b327196c111868.tar.gz
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>
Diffstat (limited to 'qt-ui/simplewidgets.h')
-rw-r--r--qt-ui/simplewidgets.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h
index f57046ea3..58c9199a5 100644
--- a/qt-ui/simplewidgets.h
+++ b/qt-ui/simplewidgets.h
@@ -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: