diff options
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r-- | qt-ui/simplewidgets.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index 5fb9308fd..89b074ca5 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -326,6 +326,13 @@ QDate DateWidget::date() const return mDate; } +void DateWidget::changeEvent(QEvent *event) +{ + if(event->type() == QEvent::EnabledChange){ + update(); + } +} + void DateWidget::paintEvent(QPaintEvent *event) { static QPixmap pix = QPixmap(":/calendar").scaled(64,64); |