From 274faaa8fe57cbdf23e656d9d63b17fc81398d0a Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Wed, 15 Feb 2012 19:15:31 +0200 Subject: Define SIGSLOT_EMIT if it hasn't been defined --- sigslot.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3