From a7240cd83f24c64d4a65d5f2ed22d1f61d810769 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 19 Jun 2014 15:52:30 -0300 Subject: Added focus handling to the Date Picker. Added focus handling for the date picker, this way the user can use the keyboard to change the date. ( still not implemented ) Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/simplewidgets.h') diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h index 3600f59b7..445dfebd4 100644 --- a/qt-ui/simplewidgets.h +++ b/qt-ui/simplewidgets.h @@ -100,6 +100,8 @@ public slots: protected: void paintEvent(QPaintEvent *event); void mousePressEvent(QMouseEvent *event); + void focusInEvent(QFocusEvent *); + void focusOutEvent(QFocusEvent *); signals: void dateChanged(const QDate& date); private: -- cgit v1.2.3-70-g09d2