<?xml version="1.0" encoding="UTF-8"?>
<!--
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-->
<typesystem package="PySide6.QtSvg">
  <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>

  <object-type name="QSvgRenderer"/>

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

    <modify-function signature="outputDevice()const">
      <modify-argument index="return">
          <define-ownership class="target" owner="default"/>
      </modify-argument>
    </modify-function>
  </object-type>

</typesystem>
