Ticket #13404: 02_register_qfileinfo_at_startup_v30_master.patch

File 02_register_qfileinfo_at_startup_v30_master.patch, 1.0 KB (added by rcrdnalor, 5 years ago)

Patch to register <QFileInfo> to QMetaType at startup for fixes/30 and master

  • mythtv/libs/libmythservicecontracts/service.h

    From bd6753401b1f8d29182814d48aa64686c400b65a Mon Sep 17 00:00:00 2001
    From: Roland Ernst <rcrernst@gmail.com>
    Date: Sat, 9 Feb 2019 13:03:02 +0000
    Subject: [PATCH] Register <QFileInfo> to QMetaType at startup, because
     MythTV's Services/Content need this type already registered.
    
    ---
     mythtv/libs/libmythservicecontracts/service.h | 5 ++++-
     1 file changed, 4 insertions(+), 1 deletion(-)
    
    diff --git a/mythtv/libs/libmythservicecontracts/service.h b/mythtv/libs/libmythservicecontracts/service.h
    index b87995d94a..fed7eb3047 100644
    a b class SERVICE_PUBLIC Service : public QObject 
    7171//
    7272//////////////////////////////////////////////////////////////////////////////
    7373
    74 inline Service::Service(QObject *parent) : QObject(parent) {}
     74inline Service::Service(QObject *parent) : QObject(parent)
     75{
     76     qRegisterMetaType< QFileInfo >();
     77}
    7578
    7679//////////////////////////////////////////////////////////////////////////////
    7780//