summaryrefslogtreecommitdiffstats
path: root/examples/charts
diff options
context:
space:
mode:
authorLars Schmertmann <Lars.Schmertmann@governikus.de>2020-06-26 14:42:25 +0200
committerLars Schmertmann <Lars.Schmertmann@governikus.de>2020-06-26 15:21:30 +0200
commit6852c79c458df659e440c26d91a11a2c8120d875 (patch)
tree38c682486b965b640e65398f2930bdea250a5602 /examples/charts
parent10b3639bf28e384cec0eba882de1e73e91462a2e (diff)
Add ; to Q_UNUSED
This is required to remove the ; from the macro with Qt 6. Task-number: QTBUG-82978 Change-Id: I0d9e3a48056294137f1465f091802b4b7c32c8bf Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'examples/charts')
-rw-r--r--examples/charts/audio/xyseriesiodevice.cpp4
-rw-r--r--examples/charts/barmodelmapper/customtablemodel.cpp4
-rw-r--r--examples/charts/callout/callout.cpp4
-rw-r--r--examples/charts/modeldata/customtablemodel.cpp4
-rw-r--r--examples/charts/stackedbarchartdrilldown/drilldownchart.cpp2
5 files changed, 9 insertions, 9 deletions
diff --git a/examples/charts/audio/xyseriesiodevice.cpp b/examples/charts/audio/xyseriesiodevice.cpp
index d129725d..22d9a070 100644
--- a/examples/charts/audio/xyseriesiodevice.cpp
+++ b/examples/charts/audio/xyseriesiodevice.cpp
@@ -39,8 +39,8 @@ XYSeriesIODevice::XYSeriesIODevice(QXYSeries *series, QObject *parent) :
qint64 XYSeriesIODevice::readData(char *data, qint64 maxSize)
{
- Q_UNUSED(data)
- Q_UNUSED(maxSize)
+ Q_UNUSED(data);
+ Q_UNUSED(maxSize);
return -1;
}
diff --git a/examples/charts/barmodelmapper/customtablemodel.cpp b/examples/charts/barmodelmapper/customtablemodel.cpp
index 37730042..c722f089 100644
--- a/examples/charts/barmodelmapper/customtablemodel.cpp
+++ b/examples/charts/barmodelmapper/customtablemodel.cpp
@@ -60,13 +60,13 @@ CustomTableModel::~CustomTableModel()
int CustomTableModel::rowCount(const QModelIndex &parent) const
{
- Q_UNUSED(parent)
+ Q_UNUSED(parent);
return m_data.count();
}
int CustomTableModel::columnCount(const QModelIndex &parent) const
{
- Q_UNUSED(parent)
+ Q_UNUSED(parent);
return m_columnCount;
}
diff --git a/examples/charts/callout/callout.cpp b/examples/charts/callout/callout.cpp
index bb37802a..c78693b6 100644
--- a/examples/charts/callout/callout.cpp
+++ b/examples/charts/callout/callout.cpp
@@ -53,8 +53,8 @@ QRectF Callout::boundingRect() const
void Callout::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
- Q_UNUSED(option)
- Q_UNUSED(widget)
+ Q_UNUSED(option);
+ Q_UNUSED(widget);
QPainterPath path;
path.addRoundedRect(m_rect, 5, 5);
diff --git a/examples/charts/modeldata/customtablemodel.cpp b/examples/charts/modeldata/customtablemodel.cpp
index 96256232..dfa92944 100644
--- a/examples/charts/modeldata/customtablemodel.cpp
+++ b/examples/charts/modeldata/customtablemodel.cpp
@@ -54,13 +54,13 @@ CustomTableModel::CustomTableModel(QObject *parent) :
int CustomTableModel::rowCount(const QModelIndex &parent) const
{
- Q_UNUSED(parent)
+ Q_UNUSED(parent);
return m_data.count();
}
int CustomTableModel::columnCount(const QModelIndex &parent) const
{
- Q_UNUSED(parent)
+ Q_UNUSED(parent);
return m_columnCount;
}
diff --git a/examples/charts/stackedbarchartdrilldown/drilldownchart.cpp b/examples/charts/stackedbarchartdrilldown/drilldownchart.cpp
index 696b5397..397dad8c 100644
--- a/examples/charts/stackedbarchartdrilldown/drilldownchart.cpp
+++ b/examples/charts/stackedbarchartdrilldown/drilldownchart.cpp
@@ -61,7 +61,7 @@ void DrilldownChart::changeSeries(DrilldownBarSeries *series)
void DrilldownChart::handleClicked(int index, QBarSet *barset)
{
- Q_UNUSED(barset)
+ Q_UNUSED(barset);
DrilldownBarSeries *series = static_cast<DrilldownBarSeries *>(sender());
changeSeries(series->drilldownSeries(index));
}