diff options
author | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-27 14:18:09 +0200 |
---|---|---|
committer | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-07-07 11:51:48 +0200 |
commit | 6ce2f3f26bf08b4c6952f492a3731eb4fe5a42bc (patch) | |
tree | 727427eb4c603e74954d4da462484ea7bf5c65bb /src/widgets/itemviews | |
parent | d9cc1499954829faf9486fb72056e29f1bad58e3 (diff) |
Add ; to Q_UNUSED
This is required to remove the ; from the macro with Qt 6.
Task-number: QTBUG-82978
Change-Id: I3f0b6717956ca8fa486bed9817b89dfa19f5e0e1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/widgets/itemviews')
-rw-r--r-- | src/widgets/itemviews/qabstractitemdelegate.cpp | 2 | ||||
-rw-r--r-- | src/widgets/itemviews/qabstractitemview.cpp | 26 | ||||
-rw-r--r-- | src/widgets/itemviews/qtableview.cpp | 10 |
3 files changed, 19 insertions, 19 deletions
diff --git a/src/widgets/itemviews/qabstractitemdelegate.cpp b/src/widgets/itemviews/qabstractitemdelegate.cpp index a39da69ffd..3b2d1a80ff 100644 --- a/src/widgets/itemviews/qabstractitemdelegate.cpp +++ b/src/widgets/itemviews/qabstractitemdelegate.cpp @@ -551,7 +551,7 @@ bool QAbstractItemDelegatePrivate::tryFixup(QWidget *editor) } } #else - Q_UNUSED(editor) + Q_UNUSED(editor); #endif // QT_CONFIG(lineedit) return true; diff --git a/src/widgets/itemviews/qabstractitemview.cpp b/src/widgets/itemviews/qabstractitemview.cpp index dcc1e615a7..bc35679492 100644 --- a/src/widgets/itemviews/qabstractitemview.cpp +++ b/src/widgets/itemviews/qabstractitemview.cpp @@ -3397,9 +3397,9 @@ void QAbstractItemView::rowsAboutToBeRemoved(const QModelIndex &parent, int star */ void QAbstractItemViewPrivate::_q_rowsRemoved(const QModelIndex &index, int start, int end) { - Q_UNUSED(index) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(index); + Q_UNUSED(start); + Q_UNUSED(end); Q_Q(QAbstractItemView); if (q->isVisible()) @@ -3478,9 +3478,9 @@ void QAbstractItemViewPrivate::_q_columnsAboutToBeRemoved(const QModelIndex &par */ void QAbstractItemViewPrivate::_q_columnsRemoved(const QModelIndex &index, int start, int end) { - Q_UNUSED(index) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(index); + Q_UNUSED(start); + Q_UNUSED(end); Q_Q(QAbstractItemView); if (q->isVisible()) @@ -3505,9 +3505,9 @@ void QAbstractItemViewPrivate::_q_columnsRemoved(const QModelIndex &index, int s */ void QAbstractItemViewPrivate::_q_rowsInserted(const QModelIndex &index, int start, int end) { - Q_UNUSED(index) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(index); + Q_UNUSED(start); + Q_UNUSED(end); #ifndef QT_NO_ACCESSIBILITY Q_Q(QAbstractItemView); @@ -3528,9 +3528,9 @@ void QAbstractItemViewPrivate::_q_rowsInserted(const QModelIndex &index, int sta */ void QAbstractItemViewPrivate::_q_columnsInserted(const QModelIndex &index, int start, int end) { - Q_UNUSED(index) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(index); + Q_UNUSED(start); + Q_UNUSED(end); Q_Q(QAbstractItemView); if (q->isVisible()) @@ -3955,7 +3955,7 @@ QItemSelectionModel::SelectionFlags QAbstractItemView::selectionCommand(const QM QItemSelectionModel::SelectionFlags QAbstractItemViewPrivate::multiSelectionCommand( const QModelIndex &index, const QEvent *event) const { - Q_UNUSED(index) + Q_UNUSED(index); if (event) { switch (event->type()) { diff --git a/src/widgets/itemviews/qtableview.cpp b/src/widgets/itemviews/qtableview.cpp index 4afcc3ef6a..091e998036 100644 --- a/src/widgets/itemviews/qtableview.cpp +++ b/src/widgets/itemviews/qtableview.cpp @@ -975,7 +975,7 @@ void QTableViewPrivate::drawAndClipSpans(const QRegion &area, QPainter *painter, */ void QTableViewPrivate::_q_updateSpanInsertedRows(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) + Q_UNUSED(parent); spans.updateInsertedRows(start, end); } @@ -985,7 +985,7 @@ void QTableViewPrivate::_q_updateSpanInsertedRows(const QModelIndex &parent, int */ void QTableViewPrivate::_q_updateSpanInsertedColumns(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) + Q_UNUSED(parent); spans.updateInsertedColumns(start, end); } @@ -995,7 +995,7 @@ void QTableViewPrivate::_q_updateSpanInsertedColumns(const QModelIndex &parent, */ void QTableViewPrivate::_q_updateSpanRemovedRows(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) + Q_UNUSED(parent); spans.updateRemovedRows(start, end); } @@ -1005,7 +1005,7 @@ void QTableViewPrivate::_q_updateSpanRemovedRows(const QModelIndex &parent, int */ void QTableViewPrivate::_q_updateSpanRemovedColumns(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) + Q_UNUSED(parent); spans.updateRemovedColumns(start, end); } @@ -3451,7 +3451,7 @@ void QTableView::selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) { Q_D(QTableView); - Q_UNUSED(d) + Q_UNUSED(d); #ifndef QT_NO_ACCESSIBILITY if (QAccessible::isActive()) { // ### does not work properly for selection ranges. |