|
From: Daniel J S. <dan...@ie...> - 2014-02-16 18:06:32
|
On 02/16/2014 11:46 AM, Daniel J Sebald wrote:
> In the file QtGraphicsScene.h is:
>
> #define EAM_BOXED_TEXT 1
>
> Should that be there? It seems it could override the settings of
> config.h. Or doesn't it make a difference because the terminal will
> just be including something that doesn't get used?
Oh, I just realized why that is there. It is to provide the signal/slot
definitions for the moc_### files. At least it was at one time,
perhaps. When Qt does it's pre-processing, it isn't including config.h
apparently and acting accordingly. It just looks for the "signals" and
"slots" directives.
Hmm, I suppose one solution is to not worry about defining out signals
and slots in Qt header files. That is leave out the #ifdef in the
following:
signals:
#ifdef EAM_BOXED_TEXT
void sig_boxed_text(unsigned int x, unsigned int y, int option);
#endif
At this link is described another way of getting definitions in the MOC
compilation:
http://qt-project.org/doc/qt-4.8/moc.html
moc_%.cpp: %.h
moc $(DEFINES) $(INCPATH) $< -o $@
but of course DEFINES has to hold something.
I'm not going to worry about this and just go with leaving out the
#ifdef in signals/slots.
Dan
|