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

Kenneth Aafløy ke-aa at frisurf.no
Wed Dec 31 07:26:35 EST 2003


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.

Kenneth



More information about the mythtv-dev mailing list