KDatePicker: override changeEvent() instead of setEnabled()

Review Request #117277 - Created April 1, 2014 and submitted

Information
Alex Merry
kwidgetsaddons
master
Reviewers
kdeframeworks
cfeck
KDatePicker: override changeEvent() instead of setEnabled()

As the comment noted, setEnabled() is not virtual.  Also, there was no
need to separately enabled/disable the individual components, when they
are children of the KDatePicker widget.  Instead, we override
changeEvent() and use it to focus the table (as before).

This also extends the kdatepicktest to temporarily disable the picker.
Builds.  Tests pass.  Played around with kdatepicktest; behaviour seems unchanged.
Christoph Feck
Christoph Feck
Commit Hook
This review has been submitted with commit d1e542627f907c9512859c0f002210d9bf8b221b by Alex Merry to branch master.
Alex Merry
Review request changed

Status: Closed (submitted)

Loading...