[mythtv-commits] Ticket #13404: QT5: QFileInfo is not registered to QMetaType at startup anymore

MythTV noreply at mythtv.org
Tue Feb 19 10:56:00 UTC 2019


#13404: QT5: QFileInfo is not registered to QMetaType at startup anymore
------------------------------+---------------------------
 Reporter:  rcrdnalor         |          Owner:  Bill Meek
     Type:  Patch - Bug Fix   |         Status:  accepted
 Priority:  minor             |      Milestone:  30.1
Component:  MythTV - General  |        Version:  v29-fixes
 Severity:  medium            |     Resolution:
 Keywords:                    |  Ticket locked:  0
------------------------------+---------------------------

Comment (by Roland Ernst <rcrernst@…>):

 In [changeset:"f7b5fd704be1e75071f8452b669d303ab053a245/mythtv"
 f7b5fd704/mythtv]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="f7b5fd704be1e75071f8452b669d303ab053a245"
 Services API: Allow images/icons immediately after BE startup. Refs #13404

 Register <QFileInfo> to QMetaType at backend startup.

 Tested on master with:

     curl --header Accept:Application/JSON --output /tmp/preview.out \
         --silent
 localhost:6544/Content/GetPreviewImage?RecordedId=<validRID>

     curl --header Accept:Application/JSON --output /tmp/icon.out \
         --silent localhost:6544/Guide/GetChannelIcon?ChanId=<validChanID>

     Also, without --header ... for XML responses.

 Required because Services need this type already registered. Without this
 fix expect:

     JSON: {'': ''}
     XML:  <?xml version="1.0" encoding="UTF-8"?><></>

 Thanks Roland.

 Signed-off-by: Bill Meek <billmeek at mythtv.org>
 }}}

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13404#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list