summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sigslot.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sigslot.h b/sigslot.h
index 5133cc6..c60a81e 100644
--- a/sigslot.h
+++ b/sigslot.h
@@ -101,7 +101,13 @@
# endif
#endif
-#define SIGSLOT_EMIT broadcast
+#ifndef SIGSLOT_EMIT
+# ifdef QT_VERSION
+# define SIGSLOT_EMIT broadcast
+# else
+# define SIGSLOT_EMIT emit
+# endif
+#endif
namespace sigslot {