Port to KDateComboBox of KWidgetsAddons
ClosedPublic

Authored by broulik on Dec 31 2016, 3:10 PM.

Details

Summary

KDateCombo still uses KLocale and blocks waiting for a DBus reply of ktimezoned which never arrives.
This class is now available in modernized form in KWidgetsAddons, so drop our own outdated copy.

Test Plan

KFind starts instantly again.
Other than that selecting a date range works, complaining if it's in the future or invalid, finding different results depending on the criteria. (It still starts the search after having complained about invalid dates but that is also without this patch, needs to be addressed separately)

Diff Detail

Repository
R228 KFind
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik updated this revision to Diff 9554.Dec 31 2016, 3:10 PM
broulik retitled this revision from to Rewrite KDateCombo and port away from KLocale.
broulik updated this object.
broulik edited the test plan for this revision. (Show Details)
broulik added a reviewer: dfaure.
broulik set the repository for this revision to R228 KFind.
dfaure accepted this revision.Dec 31 2016, 3:41 PM
dfaure edited edge metadata.
This revision is now accepted and ready to land.Dec 31 2016, 3:41 PM
broulik updated this revision to Diff 10579.Jan 26 2017, 10:24 AM
broulik retitled this revision from Rewrite KDateCombo and port away from KLocale to Port to KDateComboBox of KWidgetsAddons.
broulik updated this object.
broulik edited the test plan for this revision. (Show Details)
broulik edited edge metadata.
  • Use KDateComboBox in KWidgetsAddons and drop own copy

Just found this class :) It also has nifty shortcuts for "today", "last week", and also shows the full year.

Looks good.

Interesting, I can't approve again in the GUI, it says my previous approval is still valid ;). This doesn't work like gerrit where any new patch being uploaded discards previous approvals.

This revision was automatically updated to reflect the committed changes.