Can't forward-declare meta types in Qt5
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 24 Mar 2014 20:00:44 +0000 (21:00 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 24 Mar 2014 23:21:25 +0000 (00:21 +0100)
src/common/types.h

index c989123..290d53f 100644 (file)
@@ -29,8 +29,9 @@
 #include <QHostAddress>
 #include <QDataStream>
 
+#include "peer.h"
+
 // We need to special-case Peer* in attached signals/slots, so typedef it for the meta type system
-class Peer;
 typedef Peer * PeerPtr;
 Q_DECLARE_METATYPE(PeerPtr)