KDE/kdelibs/kdeui/widgets

Michael Jansen info at michael-jansen.biz
Sat Jun 7 17:10:50 BST 2008


Hi 

Ok. Started to work on it and got the same result as last time. There is no 
KStdAccel::ShortcutList anymore. For kde4porting

<h4><a name="KShortcutsEditor">KShortcutsEditor</a> (was KKeyChooser)</h4>
<ul>
<li>Added new constructor parameter: ActionTypes types.  Allows you to filter 
the types of actions shown in the dialog.</li>
<li>Removed all functions dealing with old classes KShortcutList, KGlobalAccel 
(kde3 version)</li>
<li>Global shortcut conflict checking functions moved to KGlobalAccel.</li>
<li>Standard shortcuts checking functions were removed.</li>
</ul>
<p>See also <a href="#KShortcutsDialog">KShortcutsDialog</a>.</p>

You see KShortcutList was removed. Whoever did that change should have an idea 
how to achieve this functionality. So: Who did it?

The questions.

1: How to get the list of standard shortcuts. 
2. How to change them persistent?

Mike

On Tuesday 27 May 2008 16:30:29 David Faure wrote:
> On Tuesday 27 May 2008, you wrote:
> > > (*) where did the standard-shortcuts-config module go???
> >
> > It's lost. If somebody is able to explain to me how to do it, i will
> > bring it back. I never have been able to find the code that was
> > responsible for it.
>
> /d/kde/src/3/kdebase/kcontrol/keys>rgrep Standard
> ./shortcuts.cpp:186:    m_pkcApplication = new KKeyChooser(
> m_pListApplication, this, KKeyChooser::Standard, false );
>
> With context:
>
>         m_pListApplication = new KStdAccel::ShortcutList;
>         m_pkcApplication = new KKeyChooser( m_pListApplication, this,
> KKeyChooser::Standard, false ); m_pTab->addTab( m_pkcApplication,
> i18n("App&lication Shortcuts") ); connect( m_pkcApplication,
> SIGNAL(keyChange()), SLOT(slotKeyChange()) );
>
> (this is in $KDESVN/branches/KDE/3.5/kdebase/kcontrol/keys )
>
> In kde4, this code is mostly gone indeed, except for the few commented out
> mentions of m_pkcApplication that remain in
> kdebase/workspace/kcontrol/keys/shortcuts.cpp





More information about the kde-core-devel mailing list