[mythtv] [Patch] (alpha) Update to Kenneth's DVBChanneleditorpatch

Isaac Richards ijr at po.cwru.edu
Wed Dec 31 11:33:35 EST 2003


On Wednesday 31 December 2003 07:26 am, Kenneth Aafløy wrote:
> John Pullan wrote:
> > This is starting to bug me. As far as I can tell, moc is that dumb. It
> > just seems to grab every Q_OBJECT in a file (h or cpp) and generate
> > it's stubs.
> >
> > The problem comes when it generates code which uses a typedef which is
> > no longer defined e.g DVBStatusLabel::set(fe_status_t s) which then
> > barfs when it comes to compile time.
> >
> > I think what I'm going to do is put in a dummy typedef for fe_status_t
> > when it's not being compiled in normally and ifdef out the
> > implementation of set(). A bit ugly, but probably the best looking
> > option I've come up with.
>
> Quote from qt docs (http://doc.trolltech.com/3.3/moc.html):
> "The moc does not expand #include or #define,
> it simply skips any preprocessor directives it encounters."
>
> So that would be the only solution.

I have things merged in to my local tree and taken care of relatively cleanly.  
Don't worry 'bout it. =)

Isaac


More information about the mythtv-dev mailing list