summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-11-10 13:57:31 +0200
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-11-10 13:57:37 +0200
commit0f324106dcda14089ce28aa5db585a1ef65f43da (patch)
tree9e53fe650612efda15c0c128cb78b357def0c4d5 /tests/auto
parentbc317e1ea56c85a41413a5ddde4112623a1b4913 (diff)
parentb6ee023cedb7e249a8dd94ae79b7ce61884adadf (diff)
Merge branch 'develop'
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/cpptest/q3daxis-category/tst_axis.cpp14
-rw-r--r--tests/auto/cpptest/q3daxis-logvalue/tst_axis.cpp14
-rw-r--r--tests/auto/cpptest/q3daxis-value/tst_axis.cpp14
-rw-r--r--tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp50
-rw-r--r--tests/auto/cpptest/q3dbars-proxy/tst_proxy.cpp14
-rw-r--r--tests/auto/cpptest/q3dbars-series/tst_series.cpp14
-rw-r--r--tests/auto/cpptest/q3dbars/tst_bars.cpp22
-rw-r--r--tests/auto/cpptest/q3dcustom-label/tst_custom.cpp14
-rw-r--r--tests/auto/cpptest/q3dcustom-volume/tst_custom.cpp14
-rw-r--r--tests/auto/cpptest/q3dcustom/tst_custom.cpp14
-rw-r--r--tests/auto/cpptest/q3dinput-touch/tst_input.cpp14
-rw-r--r--tests/auto/cpptest/q3dinput/tst_input.cpp14
-rw-r--r--tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp37
-rw-r--r--tests/auto/cpptest/q3dscatter-proxy/tst_proxy.cpp14
-rw-r--r--tests/auto/cpptest/q3dscatter-series/tst_series.cpp14
-rw-r--r--tests/auto/cpptest/q3dscatter/tst_scatter.cpp23
-rw-r--r--tests/auto/cpptest/q3dscene-camera/tst_camera.cpp14
-rw-r--r--tests/auto/cpptest/q3dscene-light/tst_light.cpp14
-rw-r--r--tests/auto/cpptest/q3dscene/tst_scene.cpp24
-rw-r--r--tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp18
-rw-r--r--tests/auto/cpptest/q3dsurface-modelproxy/tst_proxy.cpp64
-rw-r--r--tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp14
-rw-r--r--tests/auto/cpptest/q3dsurface-series/tst_series.cpp14
-rw-r--r--tests/auto/cpptest/q3dsurface/tst_surface.cpp23
-rw-r--r--tests/auto/cpptest/q3dtheme/tst_theme.cpp14
-rw-r--r--tests/auto/qmltest/axis3d/tst_category.qml14
-rw-r--r--tests/auto/qmltest/axis3d/tst_logvalue.qml14
-rw-r--r--tests/auto/qmltest/axis3d/tst_value.qml14
-rw-r--r--tests/auto/qmltest/bars3d/tst_bars.qml14
-rw-r--r--tests/auto/qmltest/bars3d/tst_barseries.qml14
-rw-r--r--tests/auto/qmltest/bars3d/tst_basic.qml14
-rw-r--r--tests/auto/qmltest/bars3d/tst_proxy.qml14
-rw-r--r--tests/auto/qmltest/custom3d/tst_customitem.qml14
-rw-r--r--tests/auto/qmltest/custom3d/tst_customlabel.qml14
-rw-r--r--tests/auto/qmltest/custom3d/tst_customvolume.qml14
-rw-r--r--tests/auto/qmltest/input3d/tst_input.qml14
-rw-r--r--tests/auto/qmltest/input3d/tst_touch.qml14
-rw-r--r--tests/auto/qmltest/qmltest.pro54
-rw-r--r--tests/auto/qmltest/scatter3d/tst_basic.qml14
-rw-r--r--tests/auto/qmltest/scatter3d/tst_proxy.qml14
-rw-r--r--tests/auto/qmltest/scatter3d/tst_scatter.qml14
-rw-r--r--tests/auto/qmltest/scatter3d/tst_scatterseries.qml14
-rw-r--r--tests/auto/qmltest/scene3d/tst_camera.qml14
-rw-r--r--tests/auto/qmltest/scene3d/tst_light.qml14
-rw-r--r--tests/auto/qmltest/scene3d/tst_scene.qml14
-rw-r--r--tests/auto/qmltest/surface3d/tst_basic.qml14
-rw-r--r--tests/auto/qmltest/surface3d/tst_heightproxy.qml14
-rw-r--r--tests/auto/qmltest/surface3d/tst_proxy.qml14
-rw-r--r--tests/auto/qmltest/surface3d/tst_surface.qml14
-rw-r--r--tests/auto/qmltest/surface3d/tst_surfaceseries.qml14
-rw-r--r--tests/auto/qmltest/theme3d/tst_colorgradient.qml14
-rw-r--r--tests/auto/qmltest/theme3d/tst_theme.qml14
-rw-r--r--tests/auto/qmltest/theme3d/tst_themecolor.qml14
-rw-r--r--tests/auto/qmltest/tst_qmltest.cpp14
54 files changed, 487 insertions, 458 deletions
diff --git a/tests/auto/cpptest/q3daxis-category/tst_axis.cpp b/tests/auto/cpptest/q3daxis-category/tst_axis.cpp
index 800a0953..158fc3a2 100644
--- a/tests/auto/cpptest/q3daxis-category/tst_axis.cpp
+++ b/tests/auto/cpptest/q3daxis-category/tst_axis.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3daxis-logvalue/tst_axis.cpp b/tests/auto/cpptest/q3daxis-logvalue/tst_axis.cpp
index adbedb24..d199187d 100644
--- a/tests/auto/cpptest/q3daxis-logvalue/tst_axis.cpp
+++ b/tests/auto/cpptest/q3daxis-logvalue/tst_axis.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3daxis-value/tst_axis.cpp b/tests/auto/cpptest/q3daxis-value/tst_axis.cpp
index 92029f13..fe244936 100644
--- a/tests/auto/cpptest/q3daxis-value/tst_axis.cpp
+++ b/tests/auto/cpptest/q3daxis-value/tst_axis.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp b/tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp
index c65e151b..22a236bc 100644
--- a/tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
@@ -164,7 +164,7 @@ void tst_proxy::initializeProperties()
{
QVERIFY(m_proxy);
- QTableWidget *table = new QTableWidget();
+ QTableWidget table;
m_proxy->setAutoColumnCategories(false);
m_proxy->setAutoRowCategories(false);
@@ -172,7 +172,7 @@ void tst_proxy::initializeProperties()
m_proxy->setColumnRole("column");
m_proxy->setColumnRolePattern(QRegExp("/^.*-(\\d\\d)$/"));
m_proxy->setColumnRoleReplace("\\\\1");
- m_proxy->setItemModel(table->model());
+ m_proxy->setItemModel(table.model());
m_proxy->setMultiMatchBehavior(QItemModelBarDataProxy::MMBAverage);
m_proxy->setRotationRole("rotation");
m_proxy->setRotationRolePattern(QRegExp("/-/"));
@@ -209,28 +209,28 @@ void tst_proxy::initializeProperties()
void tst_proxy::multiMatch()
{
- Q3DBars *graph = new Q3DBars();
+ Q3DBars graph;
- QTableWidget *table = new QTableWidget();
+ QTableWidget table;
QStringList rows;
rows << "row 1" << "row 2" << "row 3";
QStringList columns;
columns << "col 1";
const char *values[1][3] = {{"0/0/3.5/30", "0/0/5.0/30", "0/0/6.5/30"}};
- table->setRowCount(1);
- table->setColumnCount(3);
+ table.setRowCount(1);
+ table.setColumnCount(3);
for (int col = 0; col < columns.size(); col++) {
for (int row = 0; row < rows.size(); row++) {
- QModelIndex index = table->model()->index(col, row);
- table->model()->setData(index, values[col][row]);
+ QModelIndex index = table.model()->index(col, row);
+ table.model()->setData(index, values[col][row]);
}
}
- m_proxy->setItemModel(table->model());
- m_proxy->setRowRole(table->model()->roleNames().value(Qt::DisplayRole));
- m_proxy->setColumnRole(table->model()->roleNames().value(Qt::DisplayRole));
+ m_proxy->setItemModel(table.model());
+ m_proxy->setRowRole(table.model()->roleNames().value(Qt::DisplayRole));
+ m_proxy->setColumnRole(table.model()->roleNames().value(Qt::DisplayRole));
m_proxy->setRowRolePattern(QRegExp(QStringLiteral("^(\\d*)\\/(\\d*)\\/\\d*[\\.\\,]?\\d*\\/\\d*[\\.\\,]?\\d*$")));
m_proxy->setRowRoleReplace(QStringLiteral("\\2"));
m_proxy->setValueRolePattern(QRegExp(QStringLiteral("^\\d*(\\/)(\\d*)\\/(\\d*[\\.\\,]?\\d*)\\/\\d*[\\.\\,]?\\d*$")));
@@ -240,27 +240,29 @@ void tst_proxy::multiMatch()
QBar3DSeries *series = new QBar3DSeries(m_proxy);
- graph->addSeries(series);
+ graph.addSeries(series);
QCoreApplication::processEvents();
- QCOMPARE(graph->valueAxis()->max(), 6.5f);
+ QCOMPARE(graph.valueAxis()->max(), 6.5f);
m_proxy->setMultiMatchBehavior(QItemModelBarDataProxy::MMBFirst);
QCoreApplication::processEvents();
- QCOMPARE(graph->valueAxis()->max(), 3.5f);
+ QCOMPARE(graph.valueAxis()->max(), 3.5f);
m_proxy->setMultiMatchBehavior(QItemModelBarDataProxy::MMBLast);
QCoreApplication::processEvents();
- QCOMPARE(graph->valueAxis()->max(), 6.5f);
+ QCOMPARE(graph.valueAxis()->max(), 6.5f);
m_proxy->setMultiMatchBehavior(QItemModelBarDataProxy::MMBAverage);
QCoreApplication::processEvents();
- QCOMPARE(graph->valueAxis()->max(), 5.0f);
+ QCOMPARE(graph.valueAxis()->max(), 5.0f);
m_proxy->setMultiMatchBehavior(QItemModelBarDataProxy::MMBCumulative);
QCoreApplication::processEvents();
- QCOMPARE(graph->valueAxis()->max(), 15.0f);
+ QCOMPARE(graph.valueAxis()->max(), 15.0f);
QCOMPARE(m_proxy->columnLabels().count(), 1);
QCOMPARE(m_proxy->rowCount(), 1);
QCOMPARE(m_proxy->rowLabels().count(), 1);
QVERIFY(m_proxy->series());
+
+ m_proxy = 0; // Proxy gets deleted as graph gets deleted
}
QTEST_MAIN(tst_proxy)
diff --git a/tests/auto/cpptest/q3dbars-proxy/tst_proxy.cpp b/tests/auto/cpptest/q3dbars-proxy/tst_proxy.cpp
index 8d64ed54..68c21a8e 100644
--- a/tests/auto/cpptest/q3dbars-proxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dbars-proxy/tst_proxy.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dbars-series/tst_series.cpp b/tests/auto/cpptest/q3dbars-series/tst_series.cpp
index e2a40ae7..4ae1574e 100644
--- a/tests/auto/cpptest/q3dbars-series/tst_series.cpp
+++ b/tests/auto/cpptest/q3dbars-series/tst_series.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dbars/tst_bars.cpp b/tests/auto/cpptest/q3dbars/tst_bars.cpp
index 6910e4fa..22e5de44 100644
--- a/tests/auto/cpptest/q3dbars/tst_bars.cpp
+++ b/tests/auto/cpptest/q3dbars/tst_bars.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
@@ -96,7 +96,8 @@ void tst_bars::construct()
QVERIFY(graph);
delete graph;
- graph = new Q3DBars(new QSurfaceFormat());
+ QSurfaceFormat format;
+ graph = new Q3DBars(&format);
QVERIFY(graph);
delete graph;
}
@@ -250,6 +251,7 @@ void tst_bars::removeSeries()
m_graph->addSeries(series);
m_graph->removeSeries(series);
QCOMPARE(m_graph->seriesList().length(), 0);
+ delete series;
}
void tst_bars::removeMultipleSeries()
@@ -276,6 +278,10 @@ void tst_bars::removeMultipleSeries()
m_graph->removeSeries(series3);
QCOMPARE(m_graph->seriesList().length(), 0);
+
+ delete series;
+ delete series2;
+ delete series3;
}
// The following tests are not required for scatter or surface, as they are handled identically
diff --git a/tests/auto/cpptest/q3dcustom-label/tst_custom.cpp b/tests/auto/cpptest/q3dcustom-label/tst_custom.cpp
index 40bd5eac..01cf26a6 100644
--- a/tests/auto/cpptest/q3dcustom-label/tst_custom.cpp
+++ b/tests/auto/cpptest/q3dcustom-label/tst_custom.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dcustom-volume/tst_custom.cpp b/tests/auto/cpptest/q3dcustom-volume/tst_custom.cpp
index 372e8ecf..39453fb0 100644
--- a/tests/auto/cpptest/q3dcustom-volume/tst_custom.cpp
+++ b/tests/auto/cpptest/q3dcustom-volume/tst_custom.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dcustom/tst_custom.cpp b/tests/auto/cpptest/q3dcustom/tst_custom.cpp
index abc088f9..f79367de 100644
--- a/tests/auto/cpptest/q3dcustom/tst_custom.cpp
+++ b/tests/auto/cpptest/q3dcustom/tst_custom.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dinput-touch/tst_input.cpp b/tests/auto/cpptest/q3dinput-touch/tst_input.cpp
index 53d760ae..5541bf6d 100644
--- a/tests/auto/cpptest/q3dinput-touch/tst_input.cpp
+++ b/tests/auto/cpptest/q3dinput-touch/tst_input.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dinput/tst_input.cpp b/tests/auto/cpptest/q3dinput/tst_input.cpp
index 68b2225c..f5486d11 100644
--- a/tests/auto/cpptest/q3dinput/tst_input.cpp
+++ b/tests/auto/cpptest/q3dinput/tst_input.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp b/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp
index 9d5cea90..65856191 100644
--- a/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
@@ -120,9 +120,9 @@ void tst_proxy::initializeProperties()
{
QVERIFY(m_proxy);
- QTableWidget *table = new QTableWidget();
+ QTableWidget table;
- m_proxy->setItemModel(table->model());
+ m_proxy->setItemModel(table.model());
m_proxy->setRotationRole("rotation");
m_proxy->setRotationRolePattern(QRegExp("/-/"));
m_proxy->setRotationRoleReplace("\\\\1");
@@ -153,26 +153,26 @@ void tst_proxy::initializeProperties()
void tst_proxy::addModel()
{
- QTableWidget *table = new QTableWidget();
+ QTableWidget table;
QStringList rows;
rows << "row 1";
QStringList columns;
columns << "col 1";
const char *values[1][2] = {{"0/0/5.5/30", "0/0/10.5/30"}};
- table->setRowCount(2);
- table->setColumnCount(1);
+ table.setRowCount(2);
+ table.setColumnCount(1);
for (int col = 0; col < columns.size(); col++) {
for (int row = 0; row < rows.size(); row++) {
- QModelIndex index = table->model()->index(col, row);
- table->model()->setData(index, values[col][row]);
+ QModelIndex index = table.model()->index(col, row);
+ table.model()->setData(index, values[col][row]);
}
}
- m_proxy->setItemModel(table->model());
- m_proxy->setXPosRole(table->model()->roleNames().value(Qt::DisplayRole));
- m_proxy->setZPosRole(table->model()->roleNames().value(Qt::DisplayRole));
+ m_proxy->setItemModel(table.model());
+ m_proxy->setXPosRole(table.model()->roleNames().value(Qt::DisplayRole));
+ m_proxy->setZPosRole(table.model()->roleNames().value(Qt::DisplayRole));
m_proxy->setXPosRolePattern(QRegExp(QStringLiteral("^(\\d*)\\/(\\d*)\\/\\d*[\\.\\,]?\\d*\\/\\d*[\\.\\,]?\\d*$")));
m_proxy->setXPosRoleReplace(QStringLiteral("\\2"));
m_proxy->setYPosRolePattern(QRegExp(QStringLiteral("^\\d*(\\/)(\\d*)\\/(\\d*[\\.\\,]?\\d*)\\/\\d*[\\.\\,]?\\d*$")));
@@ -187,6 +187,9 @@ void tst_proxy::addModel()
QCOMPARE(m_proxy->itemCount(), 2);
QVERIFY(m_proxy->series());
+
+ delete series;
+ m_proxy = 0; // proxy gets deleted with series
}
QTEST_MAIN(tst_proxy)
diff --git a/tests/auto/cpptest/q3dscatter-proxy/tst_proxy.cpp b/tests/auto/cpptest/q3dscatter-proxy/tst_proxy.cpp
index 436350dc..dea71e4c 100644
--- a/tests/auto/cpptest/q3dscatter-proxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dscatter-proxy/tst_proxy.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dscatter-series/tst_series.cpp b/tests/auto/cpptest/q3dscatter-series/tst_series.cpp
index df290579..b30bec48 100644
--- a/tests/auto/cpptest/q3dscatter-series/tst_series.cpp
+++ b/tests/auto/cpptest/q3dscatter-series/tst_series.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dscatter/tst_scatter.cpp b/tests/auto/cpptest/q3dscatter/tst_scatter.cpp
index 5a3b6550..a433c932 100644
--- a/tests/auto/cpptest/q3dscatter/tst_scatter.cpp
+++ b/tests/auto/cpptest/q3dscatter/tst_scatter.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
@@ -81,7 +81,8 @@ void tst_scatter::construct()
QVERIFY(graph);
delete graph;
- graph = new Q3DScatter(new QSurfaceFormat());
+ QSurfaceFormat format;
+ graph = new Q3DScatter(&format);
QVERIFY(graph);
delete graph;
}
@@ -207,6 +208,8 @@ void tst_scatter::removeSeries()
m_graph->addSeries(series);
m_graph->removeSeries(series);
QCOMPARE(m_graph->seriesList().length(), 0);
+
+ delete series;
}
void tst_scatter::removeMultipleSeries()
@@ -231,6 +234,10 @@ void tst_scatter::removeMultipleSeries()
m_graph->removeSeries(series3);
QCOMPARE(m_graph->seriesList().length(), 0);
+
+ delete series;
+ delete series2;
+ delete series3;
}
QTEST_MAIN(tst_scatter)
diff --git a/tests/auto/cpptest/q3dscene-camera/tst_camera.cpp b/tests/auto/cpptest/q3dscene-camera/tst_camera.cpp
index ee321b22..3432a73f 100644
--- a/tests/auto/cpptest/q3dscene-camera/tst_camera.cpp
+++ b/tests/auto/cpptest/q3dscene-camera/tst_camera.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dscene-light/tst_light.cpp b/tests/auto/cpptest/q3dscene-light/tst_light.cpp
index 4568b01e..1b123e1e 100644
--- a/tests/auto/cpptest/q3dscene-light/tst_light.cpp
+++ b/tests/auto/cpptest/q3dscene-light/tst_light.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dscene/tst_scene.cpp b/tests/auto/cpptest/q3dscene/tst_scene.cpp
index 83eff9eb..bbd3dd71 100644
--- a/tests/auto/cpptest/q3dscene/tst_scene.cpp
+++ b/tests/auto/cpptest/q3dscene/tst_scene.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
@@ -127,12 +127,12 @@ void tst_scene::invalidProperties()
void tst_scene::subViews()
{
- Q3DBars *graph = new Q3DBars();
- graph->setPosition(QPoint(0, 0));
- graph->setWidth(200);
- graph->setHeight(200);
+ Q3DBars graph;
+ graph.setPosition(QPoint(0, 0));
+ graph.setWidth(200);
+ graph.setHeight(200);
- Q3DScene *scene = graph->scene();
+ Q3DScene *scene = graph.scene();
QCoreApplication::processEvents();
diff --git a/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp b/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp
index 20ed1aeb..19ba7371 100644
--- a/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
@@ -66,7 +66,9 @@ void tst_proxy::construct()
QVERIFY(proxy);
delete proxy;
- proxy = new QHeightMapSurfaceDataProxy(QImage(QSize(10, 10), QImage::Format_ARGB32));
+ QImage image(QSize(10, 10), QImage::Format_ARGB32);
+ image.fill(0);
+ proxy = new QHeightMapSurfaceDataProxy(image);
QVERIFY(proxy);
QCoreApplication::processEvents();
QCOMPARE(proxy->columnCount(), 10);
diff --git a/tests/auto/cpptest/q3dsurface-modelproxy/tst_proxy.cpp b/tests/auto/cpptest/q3dsurface-modelproxy/tst_proxy.cpp
index 6bef9478..c788da1e 100644
--- a/tests/auto/cpptest/q3dsurface-modelproxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dsurface-modelproxy/tst_proxy.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
@@ -70,13 +70,13 @@ void tst_proxy::construct()
QVERIFY(proxy);
delete proxy;
- QTableWidget *table = new QTableWidget();
+ QTableWidget table;
- proxy = new QItemModelSurfaceDataProxy(table->model());
+ proxy = new QItemModelSurfaceDataProxy(table.model());
QVERIFY(proxy);
delete proxy;
- proxy = new QItemModelSurfaceDataProxy(table->model(), "y");
+ proxy = new QItemModelSurfaceDataProxy(table.model(), "y");
QVERIFY(proxy);
QCOMPARE(proxy->rowRole(), QString(""));
QCOMPARE(proxy->columnRole(), QString(""));
@@ -87,7 +87,7 @@ void tst_proxy::construct()
QCOMPARE(proxy->columnCategories().length(), 0);
delete proxy;
- proxy = new QItemModelSurfaceDataProxy(table->model(), "row", "column", "y");
+ proxy = new QItemModelSurfaceDataProxy(table.model(), "row", "column", "y");
QVERIFY(proxy);
QCOMPARE(proxy->rowRole(), QString("row"));
QCOMPARE(proxy->columnRole(), QString("column"));
@@ -98,7 +98,7 @@ void tst_proxy::construct()
QCOMPARE(proxy->columnCategories().length(), 0);
delete proxy;
- proxy = new QItemModelSurfaceDataProxy(table->model(), "row", "column", "x", "y", "z");
+ proxy = new QItemModelSurfaceDataProxy(table.model(), "row", "column", "x", "y", "z");
QVERIFY(proxy);
QCOMPARE(proxy->rowRole(), QString("row"));
QCOMPARE(proxy->columnRole(), QString("column"));
@@ -109,7 +109,7 @@ void tst_proxy::construct()
QCOMPARE(proxy->columnCategories().length(), 0);
delete proxy;
- proxy = new QItemModelSurfaceDataProxy(table->model(), "row", "column", "y",
+ proxy = new QItemModelSurfaceDataProxy(table.model(), "row", "column", "y",
QStringList() << "rowCat", QStringList() << "colCat");
QVERIFY(proxy);
QCOMPARE(proxy->rowRole(), QString("row"));
@@ -121,7 +121,7 @@ void tst_proxy::construct()
QCOMPARE(proxy->columnCategories().length(), 1);
delete proxy;
- proxy = new QItemModelSurfaceDataProxy(table->model(), "row", "column", "x", "y", "z",
+ proxy = new QItemModelSurfaceDataProxy(table.model(), "row", "column", "x", "y", "z",
QStringList() << "rowCat", QStringList() << "colCat");
QVERIFY(proxy);
QCOMPARE(proxy->rowRole(), QString("row"));
@@ -172,7 +172,7 @@ void tst_proxy::initializeProperties()
{
QVERIFY(m_proxy);
- QTableWidget *table = new QTableWidget();
+ QTableWidget table;
m_proxy->setAutoColumnCategories(false);
m_proxy->setAutoRowCategories(false);
@@ -180,7 +180,7 @@ void tst_proxy::initializeProperties()
m_proxy->setColumnRole("column");
m_proxy->setColumnRolePattern(QRegExp("/^.*-(\\d\\d)$/"));
m_proxy->setColumnRoleReplace("\\\\1");
- m_proxy->setItemModel(table->model());
+ m_proxy->setItemModel(table.model());
m_proxy->setMultiMatchBehavior(QItemModelSurfaceDataProxy::MMBAverage);
m_proxy->setRowCategories(QStringList() << "row1" << "row2");
m_proxy->setRowRole("row");
@@ -223,9 +223,9 @@ void tst_proxy::initializeProperties()
void tst_proxy::multiMatch()
{
- Q3DSurface *graph = new Q3DSurface();
+ Q3DSurface graph;
- QTableWidget *table = new QTableWidget();
+ QTableWidget table;
QStringList rows;
rows << "row 1" << "row 2";
QStringList columns;
@@ -235,19 +235,19 @@ void tst_proxy::multiMatch()
{"1/0/5.5/30", "1/0/0.5/30"},
{"1/1/0.0/30", "1/1/0.0/30"}};
- table->setRowCount(2);
- table->setColumnCount(4);
+ table.setRowCount(2);
+ table.setColumnCount(4);
for (int col = 0; col < columns.size(); col++) {
for (int row = 0; row < rows.size(); row++) {
- QModelIndex index = table->model()->index(col, row);
- table->model()->setData(index, values[col][row]);
+ QModelIndex index = table.model()->index(col, row);
+ table.model()->setData(index, values[col][row]);
}
}
- m_proxy->setItemModel(table->model());
- m_proxy->setRowRole(table->model()->roleNames().value(Qt::DisplayRole));
- m_proxy->setColumnRole(table->model()->roleNames().value(Qt::DisplayRole));
+ m_proxy->setItemModel(table.model());
+ m_proxy->setRowRole(table.model()->roleNames().value(Qt::DisplayRole));
+ m_proxy->setColumnRole(table.model()->roleNames().value(Qt::DisplayRole));
m_proxy->setRowRolePattern(QRegExp(QStringLiteral("^(\\d*)\\/(\\d*)\\/\\d*[\\.\\,]?\\d*\\/\\d*[\\.\\,]?\\d*$")));
m_proxy->setRowRoleReplace(QStringLiteral("\\2"));
m_proxy->setYPosRolePattern(QRegExp(QStringLiteral("^\\d*(\\/)(\\d*)\\/(\\d*[\\.\\,]?\\d*)\\/\\d*[\\.\\,]?\\d*$")));
@@ -257,26 +257,28 @@ void tst_proxy::multiMatch()
QSurface3DSeries *series = new QSurface3DSeries(m_proxy);
- graph->addSeries(series);
+ graph.addSeries(series);
QCoreApplication::processEvents();
- QCOMPARE(graph->axisY()->max(), 10.5f);
+ QCOMPARE(graph.axisY()->max(), 10.5f);
m_proxy->setMultiMatchBehavior(QItemModelSurfaceDataProxy::MMBFirst);
QCoreApplication::processEvents();
- QCOMPARE(graph->axisY()->max(), 5.5f);
+ QCOMPARE(graph.axisY()->max(), 5.5f);
m_proxy->setMultiMatchBehavior(QItemModelSurfaceDataProxy::MMBLast);
QCoreApplication::processEvents();
- QCOMPARE(graph->axisY()->max(), 10.5f);
+ QCOMPARE(graph.axisY()->max(), 10.5f);
m_proxy->setMultiMatchBehavior(QItemModelSurfaceDataProxy::MMBAverage);
QCoreApplication::processEvents();
- QCOMPARE(graph->axisY()->max(), 8.0f);
+ QCOMPARE(graph.axisY()->max(), 8.0f);
m_proxy->setMultiMatchBehavior(QItemModelSurfaceDataProxy::MMBCumulativeY);
QCoreApplication::processEvents();
- QCOMPARE(graph->axisY()->max(), 16.0f);
+ QCOMPARE(graph.axisY()->max(), 16.0f);
QCOMPARE(m_proxy->columnCount(), 2);
QCOMPARE(m_proxy->rowCount(), 3);
QVERIFY(m_proxy->series());
+
+ m_proxy = 0; // Graph deletes proxy
}
QTEST_MAIN(tst_proxy)
diff --git a/tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp b/tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp
index 4274899d..3eda6819 100644
--- a/tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dsurface-series/tst_series.cpp b/tests/auto/cpptest/q3dsurface-series/tst_series.cpp
index 50eed686..43a2bcee 100644
--- a/tests/auto/cpptest/q3dsurface-series/tst_series.cpp
+++ b/tests/auto/cpptest/q3dsurface-series/tst_series.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/cpptest/q3dsurface/tst_surface.cpp b/tests/auto/cpptest/q3dsurface/tst_surface.cpp
index 0ae0a326..101195e0 100644
--- a/tests/auto/cpptest/q3dsurface/tst_surface.cpp
+++ b/tests/auto/cpptest/q3dsurface/tst_surface.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
@@ -86,7 +86,8 @@ void tst_surface::construct()
QVERIFY(graph);
delete graph;
- graph = new Q3DSurface(new QSurfaceFormat());
+ QSurfaceFormat format;
+ graph = new Q3DSurface(&format);
QVERIFY(graph);
delete graph;
}
@@ -217,6 +218,8 @@ void tst_surface::removeSeries()
m_graph->addSeries(series);
m_graph->removeSeries(series);
QCOMPARE(m_graph->seriesList().length(), 0);
+
+ delete series;
}
void tst_surface::removeMultipleSeries()
@@ -241,6 +244,10 @@ void tst_surface::removeMultipleSeries()
m_graph->removeSeries(series3);
QCOMPARE(m_graph->seriesList().length(), 0);
+
+ delete series;
+ delete series2;
+ delete series3;
}
QTEST_MAIN(tst_surface)
diff --git a/tests/auto/cpptest/q3dtheme/tst_theme.cpp b/tests/auto/cpptest/q3dtheme/tst_theme.cpp
index 35945aef..dd3b3c73 100644
--- a/tests/auto/cpptest/q3dtheme/tst_theme.cpp
+++ b/tests/auto/cpptest/q3dtheme/tst_theme.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/axis3d/tst_category.qml b/tests/auto/qmltest/axis3d/tst_category.qml
index 318fa011..35275834 100644
--- a/tests/auto/qmltest/axis3d/tst_category.qml
+++ b/tests/auto/qmltest/axis3d/tst_category.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/axis3d/tst_logvalue.qml b/tests/auto/qmltest/axis3d/tst_logvalue.qml
index 89228ad1..dab5b0c2 100644
--- a/tests/auto/qmltest/axis3d/tst_logvalue.qml
+++ b/tests/auto/qmltest/axis3d/tst_logvalue.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/axis3d/tst_value.qml b/tests/auto/qmltest/axis3d/tst_value.qml
index 54189c8b..6dc1aecb 100644
--- a/tests/auto/qmltest/axis3d/tst_value.qml
+++ b/tests/auto/qmltest/axis3d/tst_value.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/bars3d/tst_bars.qml b/tests/auto/qmltest/bars3d/tst_bars.qml
index a64aaf1a..d94d4361 100644
--- a/tests/auto/qmltest/bars3d/tst_bars.qml
+++ b/tests/auto/qmltest/bars3d/tst_bars.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/bars3d/tst_barseries.qml b/tests/auto/qmltest/bars3d/tst_barseries.qml
index 7e303ab0..9509393e 100644
--- a/tests/auto/qmltest/bars3d/tst_barseries.qml
+++ b/tests/auto/qmltest/bars3d/tst_barseries.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/bars3d/tst_basic.qml b/tests/auto/qmltest/bars3d/tst_basic.qml
index bf27ae8c..68c86d69 100644
--- a/tests/auto/qmltest/bars3d/tst_basic.qml
+++ b/tests/auto/qmltest/bars3d/tst_basic.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/bars3d/tst_proxy.qml b/tests/auto/qmltest/bars3d/tst_proxy.qml
index 8d91c055..7de3b72b 100644
--- a/tests/auto/qmltest/bars3d/tst_proxy.qml
+++ b/tests/auto/qmltest/bars3d/tst_proxy.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/custom3d/tst_customitem.qml b/tests/auto/qmltest/custom3d/tst_customitem.qml
index ee3d10fc..648d0342 100644
--- a/tests/auto/qmltest/custom3d/tst_customitem.qml
+++ b/tests/auto/qmltest/custom3d/tst_customitem.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/custom3d/tst_customlabel.qml b/tests/auto/qmltest/custom3d/tst_customlabel.qml
index acac1b63..3a057e95 100644
--- a/tests/auto/qmltest/custom3d/tst_customlabel.qml
+++ b/tests/auto/qmltest/custom3d/tst_customlabel.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/custom3d/tst_customvolume.qml b/tests/auto/qmltest/custom3d/tst_customvolume.qml
index 08c15013..9faa5093 100644
--- a/tests/auto/qmltest/custom3d/tst_customvolume.qml
+++ b/tests/auto/qmltest/custom3d/tst_customvolume.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/input3d/tst_input.qml b/tests/auto/qmltest/input3d/tst_input.qml
index fefb585e..0f5cd0fe 100644
--- a/tests/auto/qmltest/input3d/tst_input.qml
+++ b/tests/auto/qmltest/input3d/tst_input.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/input3d/tst_touch.qml b/tests/auto/qmltest/input3d/tst_touch.qml
index 626da68f..67a7b2c3 100644
--- a/tests/auto/qmltest/input3d/tst_touch.qml
+++ b/tests/auto/qmltest/input3d/tst_touch.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/qmltest.pro b/tests/auto/qmltest/qmltest.pro
index cbb9b8b8..5b52595f 100644
--- a/tests/auto/qmltest/qmltest.pro
+++ b/tests/auto/qmltest/qmltest.pro
@@ -3,33 +3,33 @@ TARGET = tst_qmltest
CONFIG += qmltestcase
CONFIG += console
SOURCES += tst_qmltest.cpp
-OTHER_FILES += bars3d\tst_basic.qml \
- bars3d\tst_bars.qml \
- bars3d\tst_barseries.qml \
- bars3d\tst_proxy.qml \
- scatter3d\tst_basic.qml \
- scatter3d\tst_scatter.qml \
- scatter3d\tst_scatterseries.qml \
- scatter3d\tst_proxy.qml \
- surface3d\tst_basic.qml \
- surface3d\tst_surface.qml \
- surface3d\tst_surfaceseries.qml \
- surface3d\tst_proxy.qml \
- surface3d\tst_heightproxy.qml \
- theme3d\tst_theme.qml \
- theme3d\tst_colorgradient.qml \
- theme3d\tst_themecolor.qml \
- custom3d\tst_customitem.qml \
- custom3d\tst_customlabel.qml \
- custom3d\tst_customvolume.qml \
- scene3d\tst_scene.qml \
- scene3d\tst_camera.qml \
- scene3d\tst_light.qml \
- input3d\tst_input.qml \
- input3d\tst_touch.qml \
- axis3d\tst_category.qml \
- axis3d\tst_value.qml \
- axis3d\tst_logvalue.qml \
+OTHER_FILES += bars3d/tst_basic.qml \
+ bars3d/tst_bars.qml \
+ bars3d/tst_barseries.qml \
+ bars3d/tst_proxy.qml \
+ scatter3d/tst_basic.qml \
+ scatter3d/tst_scatter.qml \
+ scatter3d/tst_scatterseries.qml \
+ scatter3d/tst_proxy.qml \
+ surface3d/tst_basic.qml \
+ surface3d/tst_surface.qml \
+ surface3d/tst_surfaceseries.qml \
+ surface3d/tst_proxy.qml \
+ surface3d/tst_heightproxy.qml \
+ theme3d/tst_theme.qml \
+ theme3d/tst_colorgradient.qml \
+ theme3d/tst_themecolor.qml \
+ custom3d/tst_customitem.qml \
+ custom3d/tst_customlabel.qml \
+ custom3d/tst_customvolume.qml \
+ scene3d/tst_scene.qml \
+ scene3d/tst_camera.qml \
+ scene3d/tst_light.qml \
+ input3d/tst_input.qml \
+ input3d/tst_touch.qml \
+ axis3d/tst_category.qml \
+ axis3d/tst_value.qml \
+ axis3d/tst_logvalue.qml \
RESOURCES += \
qmltest.qrc
diff --git a/tests/auto/qmltest/scatter3d/tst_basic.qml b/tests/auto/qmltest/scatter3d/tst_basic.qml
index b7221701..9522bd22 100644
--- a/tests/auto/qmltest/scatter3d/tst_basic.qml
+++ b/tests/auto/qmltest/scatter3d/tst_basic.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/scatter3d/tst_proxy.qml b/tests/auto/qmltest/scatter3d/tst_proxy.qml
index e6478f15..cf563887 100644
--- a/tests/auto/qmltest/scatter3d/tst_proxy.qml
+++ b/tests/auto/qmltest/scatter3d/tst_proxy.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/scatter3d/tst_scatter.qml b/tests/auto/qmltest/scatter3d/tst_scatter.qml
index b070b5f0..e13885dd 100644
--- a/tests/auto/qmltest/scatter3d/tst_scatter.qml
+++ b/tests/auto/qmltest/scatter3d/tst_scatter.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/scatter3d/tst_scatterseries.qml b/tests/auto/qmltest/scatter3d/tst_scatterseries.qml
index 4df58303..f95505a4 100644
--- a/tests/auto/qmltest/scatter3d/tst_scatterseries.qml
+++ b/tests/auto/qmltest/scatter3d/tst_scatterseries.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/scene3d/tst_camera.qml b/tests/auto/qmltest/scene3d/tst_camera.qml
index 07adf633..45ec3647 100644
--- a/tests/auto/qmltest/scene3d/tst_camera.qml
+++ b/tests/auto/qmltest/scene3d/tst_camera.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/scene3d/tst_light.qml b/tests/auto/qmltest/scene3d/tst_light.qml
index d9fa282b..3c353262 100644
--- a/tests/auto/qmltest/scene3d/tst_light.qml
+++ b/tests/auto/qmltest/scene3d/tst_light.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/scene3d/tst_scene.qml b/tests/auto/qmltest/scene3d/tst_scene.qml
index d53042ca..42d22125 100644
--- a/tests/auto/qmltest/scene3d/tst_scene.qml
+++ b/tests/auto/qmltest/scene3d/tst_scene.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/surface3d/tst_basic.qml b/tests/auto/qmltest/surface3d/tst_basic.qml
index dfcc4542..257599d7 100644
--- a/tests/auto/qmltest/surface3d/tst_basic.qml
+++ b/tests/auto/qmltest/surface3d/tst_basic.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/surface3d/tst_heightproxy.qml b/tests/auto/qmltest/surface3d/tst_heightproxy.qml
index 29772451..15607770 100644
--- a/tests/auto/qmltest/surface3d/tst_heightproxy.qml
+++ b/tests/auto/qmltest/surface3d/tst_heightproxy.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/surface3d/tst_proxy.qml b/tests/auto/qmltest/surface3d/tst_proxy.qml
index 8f353153..0b90f8a4 100644
--- a/tests/auto/qmltest/surface3d/tst_proxy.qml
+++ b/tests/auto/qmltest/surface3d/tst_proxy.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/surface3d/tst_surface.qml b/tests/auto/qmltest/surface3d/tst_surface.qml
index 31c86da2..daac6f0f 100644
--- a/tests/auto/qmltest/surface3d/tst_surface.qml
+++ b/tests/auto/qmltest/surface3d/tst_surface.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/surface3d/tst_surfaceseries.qml b/tests/auto/qmltest/surface3d/tst_surfaceseries.qml
index dff2e4a8..c759fc8e 100644
--- a/tests/auto/qmltest/surface3d/tst_surfaceseries.qml
+++ b/tests/auto/qmltest/surface3d/tst_surfaceseries.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/theme3d/tst_colorgradient.qml b/tests/auto/qmltest/theme3d/tst_colorgradient.qml
index 395b6672..13c68521 100644
--- a/tests/auto/qmltest/theme3d/tst_colorgradient.qml
+++ b/tests/auto/qmltest/theme3d/tst_colorgradient.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/theme3d/tst_theme.qml b/tests/auto/qmltest/theme3d/tst_theme.qml
index 3e42b300..51be0094 100644
--- a/tests/auto/qmltest/theme3d/tst_theme.qml
+++ b/tests/auto/qmltest/theme3d/tst_theme.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/theme3d/tst_themecolor.qml b/tests/auto/qmltest/theme3d/tst_themecolor.qml
index 421a5775..06ff2dda 100644
--- a/tests/auto/qmltest/theme3d/tst_themecolor.qml
+++ b/tests/auto/qmltest/theme3d/tst_themecolor.qml
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/
diff --git a/tests/auto/qmltest/tst_qmltest.cpp b/tests/auto/qmltest/tst_qmltest.cpp
index 569d9150..b3092737 100644
--- a/tests/auto/qmltest/tst_qmltest.cpp
+++ b/tests/auto/qmltest/tst_qmltest.cpp
@@ -2,17 +2,17 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://qt.io
**
-** This file is part of the QtDataVisualization module.
+** This file is part of the Qt Data Visualization module.
**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://qt.io
**
****************************************************************************/