Permalink
Browse files

Move qRegisterMetaType<> to after Q_DECLARE_METATYPE() in 'Service'.

  • Loading branch information...
daniel-kristjansson authored and jyavenard committed Feb 27, 2013
1 parent c25b33a commit 32435cc17360d1713c6b36655aaf54ed62666ca6
Showing with 8 additions and 5 deletions.
  1. +8 −5 mythtv/libs/libmythservicecontracts/service.h
@@ -45,10 +45,7 @@ class SERVICE_PUBLIC Service : public QObject
public:
Service( QObject *parent = 0 ) : QObject( parent )
{
qRegisterMetaType< QFileInfo >();
}
inline Service( QObject *parent = NULL );
public:
@@ -72,7 +69,13 @@ class SERVICE_PUBLIC Service : public QObject
//////////////////////////////////////////////////////////////////////////////
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
Q_DECLARE_METATYPE( QFileInfo )
Q_DECLARE_METATYPE( QFileInfo )
inline Service::Service(QObject *parent) : QObject(parent)
{
qRegisterMetaType< QFileInfo >();
}
#else
inline Service::Service(QObject *parent) : QObject(parent) {}
#endif
#endif

0 comments on commit 32435cc

Please sign in to comment.