Refactor widgets
AbandonedPublic

Authored by wojnilowicz on Nov 18 2017, 10:26 AM.

Details

Reviewers
tbaumgart
Group Reviewers
KMyMoney
Commits
R261:802c8f4b98b0: Refactor widgets
Summary

Patch aims mainly to speed up recompilation time through code refactoring. Refactoring in this case means:

  1. new syntax for signal-slot connections,
  2. enums in separate header file,
  3. single class in single header,
  4. d-pointers,
  5. single inheritance for widget classes,
  6. explicit constructors,
  7. less interdependency in header files,
  8. override keyword for virtual functions,
  9. disabling copy constructors,
  10. rename kMyMoney* to KMymoney* to be consistent.
Test Plan

Tested some dialogs and wizards.

Diff Detail

Repository
R261 KMyMoney
Lint
Lint Skipped
Unit
Unit Tests Skipped
wojnilowicz created this revision.Nov 18 2017, 10:26 AM
tbaumgart requested changes to this revision.Nov 18 2017, 12:05 PM
tbaumgart added a subscriber: tbaumgart.

I found two more spots that need to be changed as well before the compiler is happy:

thb@thb-nb:~/devel/kmymoney/kmymoney/plugins/kbanking (master *)$ git grep kMyMoneyDateInput
dialogs/kbpickstartdate.ui:       <widget class="kMyMoneyDateInput" name="pickDa
dialogs/kbpickstartdate.ui:   <class>kMyMoneyDateInput</class>

Other than that, the patch seems fine to me.

This revision now requires changes to proceed.Nov 18 2017, 12:05 PM
wojnilowicz abandoned this revision.Nov 18 2017, 5:04 PM