[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-22 5:56:37
Message-ID: 200705220756.37900.johan () cgeek ! net
[Download RAW message or body]

On Tuesday 22 May 2007 05.36.22 tim green wrote:
> call updateConnections(); after you insert or remove some thing.

Thanks, it works now! :)
>
> On 5/22/07, Johan Grahn <johan@cgeek.net> wrote:
> > 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 <<


 
>> 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