Multimedia-Taste als Kurzbefehl in KMail?

Burkhard Lück lueck at hube-lueck.de
Tue May 26 08:59:11 CEST 2009


Am Dienstag 26 Mai 2009 00:15:12 schrieb Thomas Reitelbach:
> Am Montag, 25. Mai 2009 23:35:35 schrieb Panagiotis Papadopoulos:
> > Am Montag 25 Mai 2009 23:11:57 schrieb Frederik Schwarzer:
> > > On Monday 25. May 2009 22:51:18 Burkhard Lück wrote:
> > > > Hallo,
> > > >
> > > > ich habe hier in KMail in stable/trunk auf deutsch/english einen
> > > > merkwürdigen Kurzbefehl in der Standardeinstellung:
> > > >
> > > > "Focus auf die Schnellsuche einstellen" (Set Fokus to Quick Search)
> > > > -> "Bässe anheben" (Bass Up)
> > > >
> > > > In qt-copy/src/gui/kernel/qkeysequence.cpp finde ich:
> > > > Qt::Key_BassUp, QT_TRANSLATE_NOOP("QShortcut", "Bass Up")
> > > >
> > > > Key_BassUp gibt es nicht in kmail, da finde ich nur in
> > > > kmail/kmmainwidget.cpp
> > > > KAction *action = new KAction( i18n("Set Focus to Quick Search"),
> > > > this ); action->setShortcut( QKeySequence( Qt::Key_Alt + Qt::Key_Q )
> > > > );
> > > >
> > > > Warum wird aus Qt::Key_Alt + Qt::Key_Q bei mir Qt::Key_BassUp?
> > > >
Weil Qt::Key_Alt (0x01000023)+ Qt::Key_Q (0x51) = Qt::Key_BassUp (0x01000074) 
ist.

> > > > Habe ich hier ein lokales Problem und muss mal wieder alles frisch
> > > > installieren?
> > >
> > > Ist kein lokales Problem. Das habe ich hier auch. Eine solche Taste
> > > gibt es bei mir allerdings auch nicht.
> > >
> > > MfG
> >
> > Kann ich bestätigen:
> > Frische Installation von trunk/kde-l10n-de unter Arch Linux
>
> Und bei mir unter Suse Linux... ist also kein lokales Problem.
>
> *grübel* Im Moment kann ich mir darauf noch keinen Reim machen.
>
Programmierfehler:

Laut QKeySequence muss ein Qt::Modifier wie Qt::ALT benutzt werden, also:

-    action->setShortcut( QKeySequence( Qt::Key_Alt + Qt::Key_Q ) );                                                           
+    action->setShortcut( QKeySequence( Qt::ALT + Qt::Key_Q ) );                                                               

-- 
Burkhard Lück



More information about the kde-i18n-de mailing list