[mythtv] "global" keys?
Renchi Raju
renchi at pooh.tam.uiuc.edu
Wed Sep 24 13:01:22 EDT 2003
On Wed, 24 Sep 2003, thor 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.
>
> - thor
the eventfilter object is to be created in the core mythfrontend and
every module, say mythmusic, has this eventfilter installed on itself and
then all keypresses go to the core eventfilter object first (i.e to the
core mythfrontend), which decides whether to ignore it or deal with it.
renchi
More information about the mythtv-dev
mailing list