Skip to content
Snippets Groups Projects
  1. Mar 09, 2022
  2. Mar 08, 2022
  3. Mar 07, 2022
  4. Mar 06, 2022
  5. Mar 05, 2022
    • Lyndon Brown's avatar
      626d25ae
    • Lyndon Brown's avatar
      qt: add expert preferences mode · 8b75d973
      Lyndon Brown authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
      This gives a table listing all options, similar to and inspired by the
      `about:config` interface in Firefox.
      
      Unique benefits:
       - It highlights which options have been modified from default state.
       - It allows selective resetting of individual options to default values.
      
      Support is included to toggle booleans with a simple double-click.
      Double-clicking on other types opens the edit dialog.
      
      For colour selection items, the modify action directly opens the Qt
      colour selection dialog rather than present the colour control used in
      the advanced preferences view, since this is much cleaner.
      
      Note that the existing simple and advanced views are not linked; if you
      change an option in one view, that change is not reflected in the other,
      and saving changes only uses the state from the selected view. The same
      is currently true of the new expert mode, though I plan to later change
      this behaviour (for all three).
      
      Note also that hotkey items are deliberately excluded from this view.
      The dedicated hotkey editor is best suited to managing hotkeys. It does
      not work well to include the set of 224 unique hotkey options within this
      table, especially since we'd have to duplicate the code checking for
      duplicate assignments if we allow editing of them as with all other
      option types within this interface. It may seem odd for the 'expert'
      mode to be the only one without hotkey editing, however the hotkey editor
      does not really fit well into 'advanced' mode either, and I have plans to
      propose separating the hotkey editor entirely from within the set of
      three views in a small redesign.
      
      Fixes #18607.
      8b75d973
Loading