1. 09 May, 2019 1 commit
    • Lioncash's avatar
      configuration/config: Move config loading and saving to functions based off groups · 4ef3329f
      Lioncash authored
      Over time our config values have grown quite numerous in size.
      Unfortunately it also makes the single functions we have for loading and
      saving values more error prone.
      
      For example, we were loading the core settings twice when they only
      should have been loaded once. In another section, a variable was
      shadowing another variable used to load settings from a completely
      different section.
      
      Finally, in one other case, there was an extraneous endGroup() call used
      that didn't need to be done. This was essentially dead code and also a
      bug waiting to happen.
      
      This separates the section loading code into its own separate functions.
      This keeps variables only visible to the code that actually needs it,
      and makes it much easier to visually see the end of each individual
      configuration group. It also makes it much easier to visually catch bugs
      during code review.
      
      While we're at it, this also uses QStringLiteral instead of raw string
      literals, which both avoids constructing a lot of QString instances, but
      also makes it much easier to disable implicit ASCII to QString and
      vice-versa in the future via setting QT_NO_CAST_FROM_ASCII and
      QT_NO_CAST_TO_ASCII as compilation flags.
      4ef3329f
  2. 01 May, 2019 1 commit
  3. 30 Apr, 2019 2 commits
  4. 29 Apr, 2019 4 commits
  5. 26 Apr, 2019 3 commits
  6. 25 Apr, 2019 5 commits
  7. 23 Apr, 2019 8 commits
  8. 22 Apr, 2019 3 commits
  9. 21 Apr, 2019 1 commit
  10. 20 Apr, 2019 6 commits
  11. 19 Apr, 2019 6 commits