I need the patch below to compile a KDE frontend version (along with the
others coming your way). For some reason Qt-1.44 headers #define emit. I
don't see why, as moc should be dealing with files using signals/slots
anyway shouldn't it ?

Anyway, I'd like someone to comment on whether this is an acceptable
workaround for the time being, or if another method would be better.

thanks
john

diff -u -r1.4 Timeout.h
--- src/Timeout.h       2000/08/07 20:58:21     1.4
+++ src/Timeout.h       2000/08/14 13:59:15
@@ -18,6 +18,15 @@
 
 #include <sigc++/signal_system.h>
 
+#include <config.h>
+ 
+/* ugly hack to prevent Qt's '#define emit ...' from 
+ * screwing us up below - jbl 2000/8/10 
+ */
+#ifdef KDEGUI
+#undef emit
+#endif
+ 
 #ifdef SIGC_CXX_NAMESPACES
 using SigC::Signal0;
 #endif

Reply via email to