<?xml version="1.0" encoding="UTF-8"?>
<!--
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt for Python.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
-->
<typesystem package="PySide2.QtCharts">
  <load-typesystem name="typesystem_widgets.xml" generate="no"/>
  <!-- PYSIDE-1101 Removing inherited method to avoid argument conflict
  on the QChart::scroll overload -->
  <rejection class="QGraphicsItem" function-name="scroll"/>
  <namespace-type name="QtCharts">
      <object-type name="QAbstractAxis" since="5.7">
          <enum-type name="AxisType"/>
      </object-type>
      <object-type name="QAbstractBarSeries" since="5.7">
          <enum-type name="LabelsPosition"/>
          <modify-function signature="append(QtCharts::QBarSet*)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="append(QList&lt;QtCharts::QBarSet*&gt;)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="insert(int,QtCharts::QBarSet*)">
            <modify-argument index="2">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="take(QtCharts::QBarSet*)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
      </object-type>
      <object-type name="QAbstractSeries" since="5.7">
          <enum-type name="SeriesType"/>
      </object-type>
      <object-type name="QAreaLegendMarker" since="5.7"/>
      <object-type name="QAreaSeries" since="5.7"/>
      <object-type name="QBarCategoryAxis" since="5.7"/>
      <object-type name="QBarLegendMarker" since="5.7"/>
      <object-type name="QBarModelMapper" since="5.7"/>
      <object-type name="QBarSeries" since="5.7"/>
      <object-type name="QBarSet" since="5.7"/>
      <object-type name="QBoxPlotLegendMarker" since="5.7"/>
      <object-type name="QBoxPlotModelMapper" since="5.7"/>
      <object-type name="QBoxPlotSeries" since="5.7">
          <modify-function signature="append(QtCharts::QBoxSet*)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="append(QList&lt;QtCharts::QBoxSet*&gt;)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="insert(int,QtCharts::QBoxSet*)">
            <modify-argument index="2">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="take(QtCharts::QBoxSet*)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
      </object-type>
      <object-type name="QBoxSet" since="5.7">
          <enum-type name="ValuePositions"/>
      </object-type>
      <object-type name="QCandlestickLegendMarker" since="5.7"/>
      <object-type name="QCandlestickModelMapper" since="5.7"/>
      <object-type name="QCandlestickSeries" since="5.7">
          <modify-function signature="append(QtCharts::QCandlestickSet*)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="append(QList&lt;QtCharts::QCandlestickSet*&gt;)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="insert(int,QtCharts::QCandlestickSet*)">
            <modify-argument index="2">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="take(QtCharts::QCandlestickSet*)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
      </object-type>
      <object-type name="QCandlestickSet" since="5.7"/>
      <object-type name="QCategoryAxis" since="5.7">
          <enum-type name="AxisLabelsPosition"/>
      </object-type>
      <object-type name="QChart" since="5.7">
          <enum-type name="ChartType"/>
          <enum-type name="ChartTheme"/>
          <enum-type name="AnimationOption" flags="AnimationOptions"/>
          <modify-function signature="addAxis(QtCharts::QAbstractAxis*,QFlags&lt;Qt::AlignmentFlag&gt;)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="addSeries(QtCharts::QAbstractSeries*)">
              <modify-argument index="1">
                   <parent index="this" action="add"/>
              </modify-argument>
          </modify-function>
          <modify-function signature="setAxisX(QtCharts::QAbstractAxis*,QtCharts::QAbstractSeries*)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
            <modify-argument index="2">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="setAxisY(QtCharts::QAbstractAxis*,QtCharts::QAbstractSeries*)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
            <modify-argument index="2">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="removeAxis(QtCharts::QAbstractAxis*)">
            <inject-code file="../glue/qtcharts.cpp" snippet="qchart-releaseownership"/>
          </modify-function>
          <modify-function signature="removeSeries(QtCharts::QAbstractSeries*)">
            <inject-code file="../glue/qtcharts.cpp" snippet="qchart-releaseownership"/>
          </modify-function>
      </object-type>
      <object-type name="QChartView" since="5.7">
          <enum-type name="RubberBand" flags="RubberBands"/>
          <modify-function signature="QChartView(QtCharts::QChart*,QWidget*)">
              <modify-argument index="1">
                   <parent index="this" action="add"/>
              </modify-argument>
          </modify-function>
          <modify-function signature="setChart(QtCharts::QChart*)">
              <modify-argument index="1">
                   <parent index="this" action="add"/>
              </modify-argument>
          </modify-function>
      </object-type>
      <object-type name="QDateTimeAxis" since="5.7"/>
      <object-type name="QHBarModelMapper" since="5.7"/>
      <object-type name="QHBoxPlotModelMapper" since="5.7"/>
      <object-type name="QHCandlestickModelMapper" since="5.7"/>
      <object-type name="QHorizontalBarSeries" since="5.7"/>
      <object-type name="QHorizontalPercentBarSeries" since="5.7"/>
      <object-type name="QHorizontalStackedBarSeries" since="5.7"/>
      <object-type name="QHPieModelMapper" since="5.7"/>
      <object-type name="QHXYModelMapper" since="5.7"/>
      <object-type name="QLegend" since="5.7">
          <enum-type name="MarkerShape"/>
      </object-type>
      <object-type name="QLegendMarker" since="5.7">
          <enum-type name="LegendMarkerType"/>
      </object-type>
      <object-type name="QLineSeries" since="5.7"/>
      <object-type name="QLogValueAxis" since="5.7"/>
      <object-type name="QPercentBarSeries" since="5.7"/>
      <object-type name="QPieLegendMarker" since="5.7"/>
      <object-type name="QPieModelMapper" since="5.7"/>
      <object-type name="QPieSlice" since="5.7">
          <enum-type name="LabelPosition"/>
      </object-type>
      <object-type name="QPieSeries" since="5.7">
          <modify-function signature="append(QtCharts::QPieSlice*)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="append(QList&lt;QtCharts::QPieSlice*&gt;)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="insert(int,QtCharts::QPieSlice*)">
            <modify-argument index="2">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <modify-function signature="take(QtCharts::QPieSlice*)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
      </object-type>
      <object-type name="QPolarChart" since="5.7">
          <enum-type name="PolarOrientation" flags="PolarOrientations"/>
          <modify-function signature="addAxis(QtCharts::QAbstractAxis*,QtCharts::QPolarChart::PolarOrientation)">
            <modify-argument index="1">
              <parent index="this" action="add"/>
            </modify-argument>
          </modify-function>
          <!-- Compile error assigning default flags value -->
          <modify-function signature="axes(QFlags&lt;QtCharts::QPolarChart::PolarOrientation&gt;,QtCharts::QAbstractSeries*)const" remove="all"/>
      </object-type>
      <object-type name="QScatterSeries" since="5.7">
          <enum-type name="MarkerShape"/>
      </object-type>
      <object-type name="QSplineSeries" since="5.7"/>
      <object-type name="QStackedBarSeries" since="5.7"/>
      <object-type name="QValueAxis" since="5.7"/>
      <object-type name="QVBarModelMapper" since="5.7"/>
      <object-type name="QVBoxPlotModelMapper" since="5.7"/>
      <object-type name="QVCandlestickModelMapper" since="5.7"/>
      <object-type name="QVPieModelMapper" since="5.7"/>
      <object-type name="QVXYModelMapper" since="5.7"/>
      <object-type name="QXYLegendMarker" since="5.7"/>
      <object-type name="QXYModelMapper" since="5.7"/>
      <object-type name="QXYSeries" since="5.7"/>
  </namespace-type>
</typesystem>
