summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/spectrum/app/spectrum.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multimedia/spectrum/app/spectrum.h')
-rw-r--r--examples/multimedia/spectrum/app/spectrum.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/examples/multimedia/spectrum/app/spectrum.h b/examples/multimedia/spectrum/app/spectrum.h
index 1d0eedeff..aea9ce7c5 100644
--- a/examples/multimedia/spectrum/app/spectrum.h
+++ b/examples/multimedia/spectrum/app/spectrum.h
@@ -130,22 +130,6 @@ struct SweptTone
qreal amplitude;
};
-
-//-----------------------------------------------------------------------------
-// Macros
-//-----------------------------------------------------------------------------
-
-// Macro which connects a signal to a slot, and which causes application to
-// abort if the connection fails. This is intended to catch programming errors
-// such as mis-typing a signal or slot name. It is necessary to write our own
-// macro to do this - the following idiom
-// Q_ASSERT(connect(source, signal, receiver, slot));
-// will not work because Q_ASSERT compiles to a no-op in release builds.
-
-#define CHECKED_CONNECT(source, signal, receiver, slot) \
- if (!connect(source, signal, receiver, slot)) \
- qt_assert_x(Q_FUNC_INFO, "CHECKED_CONNECT failed", __FILE__, __LINE__);
-
// Handle some dependencies between macros defined in the .pro file
#ifdef DISABLE_WAVEFORM