Allow the user to select the initial date cursor position in the settings dialog
ClosedPublic

Authored by habacker on Feb 4 2018, 8:49 PM.

Details

Summary

As default the cursor position is set to the day part of the date field.

CCBUG:374123
BUG:389631
FIXED-IN:4.8.2

Test Plan

compiled and tested on linux

Diff Detail

Repository
R261 KMyMoney
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
habacker requested review of this revision.Feb 4 2018, 8:49 PM
habacker created this revision.
habacker updated this revision to Diff 26566.Feb 5 2018, 9:26 AM
habacker edited the summary of this revision. (Show Details)
  • fix fresh compile issue
  • minor edit of commit message

This change will not be cherry-pickable after https://phabricator.kde.org/D10161 landed on master/5.0.

kmymoney/dialogs/settings/ksettingsregisterdecl.ui
245

What is the reason to add the native="true" attribute here and for the other TransactionSortOption objects? Are there any potential side effects?

habacker updated this revision to Diff 26578.Feb 5 2018, 1:44 PM
  • moved KMyMoneySettings fix into separate review D10322
  • fixed refactoring of related ui file by Qt designer
habacker edited the summary of this revision. (Show Details)Feb 5 2018, 1:45 PM

This change will not be cherry-pickable after https://phabricator.kde.org/D10161 landed on master/5.0.

Thanks for this info, separated patch

kmymoney/dialogs/settings/ksettingsregisterdecl.ui
245

This has been added by Qt Designer - I'm going to update the ui file with only the required changes.

tbaumgart requested changes to this revision.Feb 5 2018, 8:51 PM
tbaumgart added inline comments.
kmymoney/dialogs/settings/ksettingsregisterdecl.ui
245

It's what I thought would have caused it. Thanks for clarification.

288

I think 'Initial cursor position within the date field' is better.

kmymoney/settings/kmymoney.kcfg
327

I think 'Initial cursor position within the date field' is better.

kmymoney/widgets/kmymoneydateinput.cpp
181

Please use enums here instead of magic numbers. They could be added to the kmymoneydateinput class/namespace

This revision now requires changes to proceed.Feb 5 2018, 8:51 PM
habacker updated this revision to Diff 26618.Feb 5 2018, 10:36 PM
habacker retitled this revision from Allow the user to select the initial date field selection in the settings dialog to Allow the user to select the initial date cursor position in the settings dialog.
habacker edited the summary of this revision. (Show Details)
  • fixed title wording
  • use enums for config variable values
  • use more descriptive name for the related config variable
habacker marked 5 inline comments as done.Feb 5 2018, 10:38 PM
habacker marked an inline comment as done.
habacker added inline comments.
kmymoney/widgets/kmymoneydateinput.cpp
181

Even better the enums are provided type safe by class KMyMoneySettings

habacker marked 2 inline comments as done.Feb 5 2018, 10:39 PM
tbaumgart accepted this revision as: tbaumgart.Feb 6 2018, 7:08 AM
tbaumgart accepted this revision.
This revision is now accepted and ready to land.Feb 6 2018, 7:08 AM

Please review D10322 because this patch depends on it.

This revision was automatically updated to reflect the committed changes.