Skip to content
Snippets Groups Projects
  1. Mar 11, 2022
    • Lyndon Brown's avatar
      ac15d1f5
    • Lyndon Brown's avatar
      qt: split hotkey editor code into its own files · 960119d8
      Lyndon Brown authored
      Having been untangled from `ConfigControl` it is now free to be moved.
      
      I took the opportunity to rename it from `KeySelectorControl` to `HotkeyEditor`.
      960119d8
    • Lyndon Brown's avatar
      qt: simplify `ConfigControl` method · 886aa7f3
      Lyndon Brown authored
      Now that the hotkey editor has been untangled from `ConfigControl`, there
      is now no longer any case where the config item pointer is null, so the
      `getType()` method can confidently just dereference it and return the type
      without having to specially return a `-1` for the hotkey editor case.
      
      (In 98b04191 I had added this special
      case specifically due to the hotkey editor).
      886aa7f3
    • Lyndon Brown's avatar
      qt: untangle hotkey editor from `ConfigControl` · c371ed4d
      Lyndon Brown authored
      The only reason that the hotkey editor derived from `ConfigControl` was due
      to it being dynamically placed within the advanced preferences interface in
      exactly the same way as controls for individual options. Now that this is
      no longer the case, we can untangle it.
      
      Doing so helps support later work.
      
      Note that setting uniform row height had to be disabled, otherwise the
      table appeared empty. I've encountered this issue before with other
      preference interface tables. I think it's a Qt bug.
      c371ed4d
    • Lyndon Brown's avatar
      qt: remove hotkey editor from advanced prefs interface · 5285ca02
      Lyndon Brown authored
      I intend for it to be moved per point 2 below, but in any case showing it
      in advanced view has always been problematic, per point 1.
      
       1. Whilst the hotkey editor works well within the simple interface, it has
          never worked so well within the advanced interface, being much too
          small within the default size of the dialog. I expect that most users
          of the hotkey editor only use it from the simple view for this reason
          in addition to it perhaps being a little quicker to locate.
      
          Furthermore it is entirely absent from the recently introduced expert
          interface. Given that it only exists in two of these three views and
          only works well in just one of them, it makes sense for it to be
          separated from them, or at least for the problematic use within
          advanced view to be dropped. (Note, if just dropping it from the
          advanced view was the only plan, it would not be the only thing
          exclusive to simple view).
      
       2. I'm working on a redesign for the preferences interface, the most
          significant feature of which is introduction of a sidebar. I intend to
          replace the simple/advanced/expert view selector control with buttons
          in that sidebar. Additionally I intend to move access to the hotkey
          editor and media library manager out of those views to separate buttons
          within the sidebar.
      
          I am very hopeful that the sidebar will be liked and accepted given
          how much cleaner it makes things and how it resolves the issue of
          major functionality - hotkey editor and ML manager - not being
          available (and usable) in all three general preference interfaces.
      
          Getting this change here done early makes subsequent significant work
          preparing the hotkey editor for the redesign much easier. For instance
          the presence of it within advanced view is intricately connected to it
          being derived from `ConfigControl`, which was never perfect and needs
          to be untangled. Whilst I could in theory implement hacks to keep it
          present within advanced view until implementation of the redesign, I'd
          rather not spend time doing that if I don't have to.
      5285ca02
    • Lyndon Brown's avatar
      qt: get config class safely · feddf1a2
      Lyndon Brown authored
      feddf1a2
    • Lyndon Brown's avatar
      qt: clean up prefs includes a little more · 6fdcc9f3
      Lyndon Brown authored
      6fdcc9f3
  2. Mar 10, 2022
  3. Mar 09, 2022
Loading