[mythtv] "global" keys?

henri at qais.com henri at qais.com
Wed Sep 24 11:28:26 EDT 2003


On 24 Sep 2003, thor <mythtv at lamedomainname.com> wrote: 

> On Wednesday 24 September 2003 12:35 pm, Renchi Raju wrote:
> 
> > an easy way is to install a global eventfilter in all modules
> > (fairly easy with QObject::installEventFilter) and then let this
> > handle the keypresses and ignore any that it can't understand. For
> > this to be done, make a class derived from qobject which installs
> > the eventfilter. All myth modules can inherit from this class
> > instead of qobject directly.
> 
> 	That doesn't solve the in scope problems. When mythmusic (for 
> example) is running, core mythfrontend has no way to receive key 
> events and (subsequently) force mythmusic to close.
> 

can you inject events into the queue easily (i haven't done
any qt development, but lots of standard X/motif a long time
ago)? the EventFilter class (subclassed by all modules)
could then inject a standard set of events that would get
you back to the "right" place

i guess there would have to be a few new key events
"quit-from-app" (in each module) and maybe a
"launch-specific-module" in the top-level mythfrontend.

henri


More information about the mythtv-dev mailing list