view generator/typesystem_svg-common.xml @ 393:1049b01aebd2

Fixed generator segfaults on OS X 10.6. Regarding the change to dgenerator.cpp, I am not actually sure if 0 is the correct value to pass, but it seems to work and the code which had been there before was just plain incorrect ? it read past the list boundaries.
author David Nadlinger <code@klickverbot.at>
date Sat, 28 Aug 2010 02:55:55 +0200
parents 8022ef40f110
children
line wrap: on
line source

<typesystem>
   <namespace-type name="QSvg" />

  <enum-type name="QGraphicsSvgItem::enum_1"/>

  <object-type name="QSvgRenderer">
    <extra-includes>
        <include file-name="QRectF" location="global" />
        <include file-name="QMatrix" location="global" />
        <include file-name="QSize" location="global" />
        <include file-name="QByteArray" location="global" />
    </extra-includes>
  </object-type>

  <object-type name="QSvgWidget">
    <extra-includes>
        <include file-name="QByteArray" location="global" />
        <include file-name="QSvgRenderer" location="global" />
        <include file-name="QSize" location="global" />
    </extra-includes>
  </object-type>

  <object-type name="QSvgGenerator">
    <modify-function signature="setOutputDevice(QIODevice*)">
        <modify-argument index="1">
            <reference-count action="set" variable-name="__rcOutputDevice" />
        </modify-argument>
    </modify-function>
  </object-type>

  <object-type name="QGraphicsSvgItem">
    <extra-includes>
        <include file-name="QGraphicsItem" location="global" />
        <include file-name="QSvgRenderer" location="global" />
        <include file-name="QSize" location="global" />
    </extra-includes>

    <modify-function signature="matrix()const" remove="all"/>
    <modify-function signature="resetMatrix()" remove="all"/>
    <modify-function signature="sceneMatrix()const" remove="all"/>
    <modify-function signature="setMatrix(QMatrix, bool)" remove="all"/>
 </object-type>

</typesystem>