summaryrefslogtreecommitdiffstats
path: root/examples/charts/piechartdrilldown
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2020-07-28 17:19:47 +0200
committerMichal Klocek <michal.klocek@qt.io>2020-11-06 12:17:54 +0100
commit227020b118fa38ada1d8bd579593dae61f6e3881 (patch)
treeeae709325afacfd9f63ef52d643ec20f1d926534 /examples/charts/piechartdrilldown
parent71cb91cfba5ab7db2b2415a48881aeba37d71438 (diff)
Remove charts namespace for Qt6
This auto refactor to remove charts namespace, just use qt one. [ChangeLog] Use QT_NAMESPACE as other modules. Change-Id: I7722ed2ff5cd84c594ea96db15e5df50a24f06b4 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'examples/charts/piechartdrilldown')
-rw-r--r--examples/charts/piechartdrilldown/drilldownchart.cpp2
-rw-r--r--examples/charts/piechartdrilldown/drilldownchart.h6
-rw-r--r--examples/charts/piechartdrilldown/drilldownslice.cpp2
-rw-r--r--examples/charts/piechartdrilldown/drilldownslice.h6
-rw-r--r--examples/charts/piechartdrilldown/main.cpp2
5 files changed, 9 insertions, 9 deletions
diff --git a/examples/charts/piechartdrilldown/drilldownchart.cpp b/examples/charts/piechartdrilldown/drilldownchart.cpp
index 690d7715..195fb5f9 100644
--- a/examples/charts/piechartdrilldown/drilldownchart.cpp
+++ b/examples/charts/piechartdrilldown/drilldownchart.cpp
@@ -29,7 +29,7 @@
#include "drilldownchart.h"
#include "drilldownslice.h"
-QT_CHARTS_USE_NAMESPACE
+QT_USE_NAMESPACE
DrilldownChart::DrilldownChart(QGraphicsItem *parent, Qt::WindowFlags wFlags)
: QChart(QChart::ChartTypeCartesian, parent, wFlags),
diff --git a/examples/charts/piechartdrilldown/drilldownchart.h b/examples/charts/piechartdrilldown/drilldownchart.h
index 53748b21..7c5da394 100644
--- a/examples/charts/piechartdrilldown/drilldownchart.h
+++ b/examples/charts/piechartdrilldown/drilldownchart.h
@@ -31,12 +31,12 @@
#include <QtCharts/QChart>
-QT_CHARTS_BEGIN_NAMESPACE
+QT_BEGIN_NAMESPACE
class QAbstractSeries;
class QPieSlice;
-QT_CHARTS_END_NAMESPACE
+QT_END_NAMESPACE
-QT_CHARTS_USE_NAMESPACE
+QT_USE_NAMESPACE
class DrilldownChart : public QChart
{
diff --git a/examples/charts/piechartdrilldown/drilldownslice.cpp b/examples/charts/piechartdrilldown/drilldownslice.cpp
index 1fc6bd81..7c0af7f0 100644
--- a/examples/charts/piechartdrilldown/drilldownslice.cpp
+++ b/examples/charts/piechartdrilldown/drilldownslice.cpp
@@ -29,7 +29,7 @@
#include "drilldownslice.h"
-QT_CHARTS_USE_NAMESPACE
+QT_USE_NAMESPACE
DrilldownSlice::DrilldownSlice(qreal value, QString prefix, QAbstractSeries *drilldownSeries)
: m_drilldownSeries(drilldownSeries),
diff --git a/examples/charts/piechartdrilldown/drilldownslice.h b/examples/charts/piechartdrilldown/drilldownslice.h
index 2735c3f6..bcdc1805 100644
--- a/examples/charts/piechartdrilldown/drilldownslice.h
+++ b/examples/charts/piechartdrilldown/drilldownslice.h
@@ -31,11 +31,11 @@
#include <QtCharts/QPieSlice>
-QT_CHARTS_BEGIN_NAMESPACE
+QT_BEGIN_NAMESPACE
class QAbstractSeries;
-QT_CHARTS_END_NAMESPACE
+QT_END_NAMESPACE
-QT_CHARTS_USE_NAMESPACE
+QT_USE_NAMESPACE
class DrilldownSlice : public QPieSlice
{
diff --git a/examples/charts/piechartdrilldown/main.cpp b/examples/charts/piechartdrilldown/main.cpp
index e18f07f3..2701ef30 100644
--- a/examples/charts/piechartdrilldown/main.cpp
+++ b/examples/charts/piechartdrilldown/main.cpp
@@ -36,7 +36,7 @@
#include <QtCharts/QLegend>
#include <QtCharts/QPieSeries>
-QT_CHARTS_USE_NAMESPACE
+QT_USE_NAMESPACE
int main(int argc, char *argv[])
{