diff options
author | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-26 14:42:52 +0200 |
---|---|---|
committer | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-26 15:21:41 +0200 |
commit | 09e937788d0bb32a133fbf668b834fa13e7669c3 (patch) | |
tree | 0db182fd01569511994ea9ff570abc8dc40be9d7 /src/datavisualization/data/abstractitemmodelhandler.cpp | |
parent | 3c7d4de151d0d87b687644381c5d8aaef06f21b2 (diff) |
Add ; to Q_UNUSED
This is required to remove the ; from the macro with Qt 6.
Task-number: QTBUG-82978
Change-Id: I66f620431011d02cb1542e8ad613dadd28fdd843
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/datavisualization/data/abstractitemmodelhandler.cpp')
-rw-r--r-- | src/datavisualization/data/abstractitemmodelhandler.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/datavisualization/data/abstractitemmodelhandler.cpp b/src/datavisualization/data/abstractitemmodelhandler.cpp index 332d6861..703a337f 100644 --- a/src/datavisualization/data/abstractitemmodelhandler.cpp +++ b/src/datavisualization/data/abstractitemmodelhandler.cpp @@ -88,9 +88,9 @@ QAbstractItemModel *AbstractItemModelHandler::itemModel() const void AbstractItemModelHandler::handleColumnsInserted(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(parent); + Q_UNUSED(start); + Q_UNUSED(end); // Manipulating columns changes all rows in proxies that map rows/columns directly, // and its effects are not clearly defined in others -> always do full reset. @@ -106,11 +106,11 @@ void AbstractItemModelHandler::handleColumnsMoved(const QModelIndex &sourceParen const QModelIndex &destinationParent, int destinationColumn) { - Q_UNUSED(sourceParent) - Q_UNUSED(sourceStart) - Q_UNUSED(sourceEnd) - Q_UNUSED(destinationParent) - Q_UNUSED(destinationColumn) + Q_UNUSED(sourceParent); + Q_UNUSED(sourceStart); + Q_UNUSED(sourceEnd); + Q_UNUSED(destinationParent); + Q_UNUSED(destinationColumn); // Manipulating columns changes all rows in proxies that map rows/columns directly, // and its effects are not clearly defined in others -> always do full reset. @@ -123,9 +123,9 @@ void AbstractItemModelHandler::handleColumnsMoved(const QModelIndex &sourceParen void AbstractItemModelHandler::handleColumnsRemoved(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(parent); + Q_UNUSED(start); + Q_UNUSED(end); // Manipulating columns changes all rows in proxies that map rows/columns directly, // and its effects are not clearly defined in others -> always do full reset. @@ -139,9 +139,9 @@ void AbstractItemModelHandler::handleDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList<int> &roles) { - Q_UNUSED(topLeft) - Q_UNUSED(bottomRight) - Q_UNUSED(roles) + Q_UNUSED(topLeft); + Q_UNUSED(bottomRight); + Q_UNUSED(roles); // Default handling for dataChanged is to do full reset, as it cannot be optimized // in a general case, where we do not know which row/column/index the item model item @@ -155,8 +155,8 @@ void AbstractItemModelHandler::handleDataChanged(const QModelIndex &topLeft, void AbstractItemModelHandler::handleLayoutChanged(const QList<QPersistentModelIndex> &parents, QAbstractItemModel::LayoutChangeHint hint) { - Q_UNUSED(parents) - Q_UNUSED(hint) + Q_UNUSED(parents); + Q_UNUSED(hint); // Resolve entire model if layout changes if (!m_resolveTimer.isActive()) { @@ -176,9 +176,9 @@ void AbstractItemModelHandler::handleModelReset() void AbstractItemModelHandler::handleRowsInserted(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(parent); + Q_UNUSED(start); + Q_UNUSED(end); // Default handling for rowsInserted is to do full reset, as it cannot be optimized // in a general case, where we do not know which row/column/index the item model item @@ -195,11 +195,11 @@ void AbstractItemModelHandler::handleRowsMoved(const QModelIndex &sourceParent, const QModelIndex &destinationParent, int destinationRow) { - Q_UNUSED(sourceParent) - Q_UNUSED(sourceStart) - Q_UNUSED(sourceEnd) - Q_UNUSED(destinationParent) - Q_UNUSED(destinationRow) + Q_UNUSED(sourceParent); + Q_UNUSED(sourceStart); + Q_UNUSED(sourceEnd); + Q_UNUSED(destinationParent); + Q_UNUSED(destinationRow); // Default handling for rowsMoved is to do full reset, as it cannot be optimized // in a general case, where we do not know which row/column/index the item model item @@ -212,9 +212,9 @@ void AbstractItemModelHandler::handleRowsMoved(const QModelIndex &sourceParent, void AbstractItemModelHandler::handleRowsRemoved(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(parent); + Q_UNUSED(start); + Q_UNUSED(end); // Default handling for rowsRemoved is to do full reset, as it cannot be optimized // in a general case, where we do not know which row/column/index the item model item |