Le 06/06/11 20:20, Vincent van Ravesteijn a écrit :
Moc doesn't work if the class is within #if's (a bit strange, but this
seems to be the case). This means you can't put the whole class inside
the #if because compilation with the newest Qt does not work. That's
also the reason I moved the Q_SIGNAL definitions out of the #if clause.

OK.

Why did you also put the #ifs around the IconButton class. I can't see
why this class would not compile on older Qt's.

I get with current trunk

make[4]: entrant dans le répertoire « /home/local/lasgoutt/devbuild/src »
  CXXLD  lyx
frontends/qt4/liblyxqt4.a(FancyLineEdit.o):(.rodata._ZTVN3lyx8frontend10IconButtonE[vtable for lyx::frontend::IconButton]+0xf8): undefined reference to `lyx::frontend::IconButton::paintEvent(QPaintEvent*)'
collect2: ld returned 1 exit status

JMarc

Reply via email to