summaryrefslogtreecommitdiffstats
blob: 005c7dcaf8e49dd3d1052a0409b5312b85749560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2010 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

// Work around for the boost::signals / Qt signals keyword clash.
// Based on an example from Frank Hess, improved by Niels Dekker

#pragma once

#if defined(signals) && defined(Q_SIGNALS) && !defined(QT_MOC_CPP)
#undef signals
#define signals signals
#endif

#include <boost/signal.hpp>

namespace boost {
	namespace bsignals = signals;
}

#if defined(signals) && defined(Q_SIGNALS) && !defined(QT_MOC_CPP)
#undef signals
#define signals Q_SIGNALS
#endif