https://bugs.kde.org/show_bug.cgi?id=427129

            Bug ID: 427129
           Summary: When using AllActions mode, dynamically show and hide
                    columns as needed
           Product: frameworks-kxmlgui
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: n...@kde.org
  Target Milestone: ---

KShortcutsEditor can be given an argument to tell it which types of shortcuts
to show: local, global, or all (I'm simplifying a bit). The default is all.

Unfortunately "all" is not an ideal default for most apps, because typically
apps have tons and tons of local shortcuts but zero global shortcuts. As a
result, the shortcuts dialog has two columns for global shortcuts that are
totally empty. This wastes space and looks like an error.

However a few apps do set one or two global actions; for example Yakuake has
one global action for show/hide and Spectacle sets a number of them. So we
can't just change the default setitng to show only local actions, or else, for
example, people using Yakuake outside of Plasma will have no GUI to configure
the global shortcuts.

I propose that we add a bit of intelligence to the editor: when using the
default AllActions mode, it should introspect the models for local and global
shortcuts to see what's available. If there are no global shortcuts in the
model, it should hide the global shortcuts columns, and if there are no local
shortcuts, it should hide the local shortcuts columns.

If the editor is opened with any other mode, this should take priority and only
show the shortcuts for that mode, as requested.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to