diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-06-19 19:57:53 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-20 15:43:13 -0700 |
commit | 6ee2758e06a4e06b43dfcf4596c1f86faaa0075e (patch) | |
tree | 9cf05e96f8c18ce09aaa209a589035e230886abd /qt-ui/simplewidgets.h | |
parent | be462ae1a61312fd6b625e00e35c1622bc006f41 (diff) | |
download | subsurface-6ee2758e06a4e06b43dfcf4596c1f86faaa0075e.tar.gz |
Listen to EnabledChange to gray out the DatePicker
This small patch listens to EnabledChange to gray out the
date picker when the widget is in disabled mode, and to
paint the widget colored when it's on enabled state.
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h index b8cb8aed4..f57046ea3 100644 --- a/qt-ui/simplewidgets.h +++ b/qt-ui/simplewidgets.h @@ -103,6 +103,7 @@ protected: void focusInEvent(QFocusEvent *); void focusOutEvent(QFocusEvent *); void keyPressEvent(QKeyEvent *); + void changeEvent(QEvent *); signals: void dateChanged(const QDate& date); private: |