aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCharts/qcharts_test.py
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2021-01-19 08:09:39 +0100
committerFriedemann Kleint <[email protected]>2021-01-20 10:11:11 +0000
commit76dbc2b4ec6e5c797ab333b176e019e1f9b14ca2 (patch)
tree2a178eac7a6e48245ca50c70c13dd1302c74058f /sources/pyside6/tests/QtCharts/qcharts_test.py
parent63614c3085fa8105e9f8ced6b2d166c2a7a2c6e6 (diff)
QtCharts: Remove namespace
Adapt to 227020b118fa38ada1d8bd579593dae61f6e3881. Task-number: PYSIDE-904 Task-number: PYSIDE-1482 Change-Id: I9adb78cfe60efd0df73be52132b4ea029986ea18 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'sources/pyside6/tests/QtCharts/qcharts_test.py')
-rw-r--r--sources/pyside6/tests/QtCharts/qcharts_test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/sources/pyside6/tests/QtCharts/qcharts_test.py b/sources/pyside6/tests/QtCharts/qcharts_test.py
index a8660d8a3..7ce355f75 100644
--- a/sources/pyside6/tests/QtCharts/qcharts_test.py
+++ b/sources/pyside6/tests/QtCharts/qcharts_test.py
@@ -2,7 +2,7 @@
#############################################################################
##
-## Copyright (C) 2017 The Qt Company Ltd.
+## Copyright (C) 2021 The Qt Company Ltd.
## Contact: https://www.qt.io/licensing/
##
## This file is part of the test suite of Qt for Python.
@@ -41,13 +41,13 @@ init_test_paths(False)
from helper.usesqapplication import UsesQApplication
from PySide6.QtCore import QRect, QSize, QTimer
from PySide6.QtGui import QGuiApplication, QScreen
-from PySide6.QtCharts import QtCharts
+from PySide6.QtCharts import QChart, QChartView, QPieSeries
class QChartsTestCase(UsesQApplication):
'''Tests related to QCharts'''
def testCharts(self):
- self.series = QtCharts.QPieSeries()
+ self.series = QPieSeries()
self.series.append("Jane", 1);
self.series.append("Joe", 2);
self.series.append("Andy", 3);
@@ -56,9 +56,9 @@ class QChartsTestCase(UsesQApplication):
slice = self.series.slices()[1]
slice.setExploded();
slice.setLabelVisible();
- self.chart = QtCharts.QChart()
+ self.chart = QChart()
self.chart.addSeries(self.series);
- chartView = QtCharts.QChartView(self.chart)
+ chartView = QChartView(self.chart)
screenSize = QGuiApplication.primaryScreen().geometry().size()
chartView.resize(screenSize / 2)
chartView.show()