mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Add registration of QSharedPointer<NLPacketList> meta type
This commit is contained in:
parent
24faab2089
commit
868558b4f0
1 changed files with 2 additions and 0 deletions
|
@ -19,8 +19,10 @@
|
||||||
#include "NodeList.h"
|
#include "NodeList.h"
|
||||||
#include "SharedUtil.h"
|
#include "SharedUtil.h"
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(QSharedPointer<NLPacketList>);
|
||||||
PacketReceiver::PacketReceiver(QObject* parent) : QObject(parent) {
|
PacketReceiver::PacketReceiver(QObject* parent) : QObject(parent) {
|
||||||
qRegisterMetaType<QSharedPointer<NLPacket>>();
|
qRegisterMetaType<QSharedPointer<NLPacket>>();
|
||||||
|
qRegisterMetaType<QSharedPointer<NLPacketList>>();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PacketReceiver::registerListenerForTypes(PacketTypeList types, QObject* listener, const char* slot) {
|
bool PacketReceiver::registerListenerForTypes(PacketTypeList types, QObject* listener, const char* slot) {
|
||||||
|
|
Loading…
Reference in a new issue