Refactor: simplify NoteContent
ClosedPublic

Authored by iasensio on May 12 2020, 5:33 PM.

Details

Summary

Small refactor to reduce the size of NoteContent class

Move cssColorsName() to Tools, and also use a simpler QHash
Move loadNode() to NoteFactory

Test Plan

It works just the same

Diff Detail

Repository
R1050 BasKet
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
iasensio requested review of this revision.May 12 2020, 5:33 PM
iasensio created this revision.
alex added inline comments.May 12 2020, 5:42 PM
src/notefactory.cpp
1047

While at it you should force braces to the if statements

iasensio updated this revision to Diff 82686.May 12 2020, 6:49 PM
iasensio marked an inline comment as done.
  • Add brackets
ognarb accepted this revision.May 12 2020, 7:07 PM
This revision is now accepted and ready to land.May 12 2020, 7:07 PM
alex accepted this revision.May 12 2020, 7:23 PM
This revision was automatically updated to reflect the committed changes.