[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Global shortcuts
From: Johan Grahn <johan () cgeek ! net>
Date: 2007-05-21 17:35:05
Message-ID: 200705211935.06092.johan () cgeek ! net
[Download RAW message or body]
On Monday 21 May 2007 13.56.10 tim green wrote:
> use KGlobalAccel. You can find doc here
> http://api.kde.org/3.4-api/kdecore/html/classKGlobalAccel.html.
Thanks for the fast reply.
I have a problem now, this code doesn't work:
---------------------------------------------------------------------------------------------------
KGlobalAccel *accel = new KGlobalAccel(this);
accel->insert( "next", i18n("Next"),0, KKey("WIN+n"), 0, this,
SLOT(playNextSong()),true, true);
--------------------------------------------------------------------------------------------------
"this" is a QVBox.
Any hints?
>
> On 5/21/07, Johan Grahn <johan@cgeek.net> wrote:
> > With amarok you can define global shortcuts that works even if the
> > application does not have focus (for example <win+b> to change to the
> > next song).
> >
> > Are there any guides in how to implement this? (using KDE3)
> >
> > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > >> unsubscribe <<
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic