Fix some qdoc warnings: unnamed parameters

If we reference a parameter in the documentation, then we have to name
it as well in the function declaration. Use Q_UNUSED instead of omitting.

Change-Id: Icb32d3bd965f0361d112f62cb3bbbbb2005d378c
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
bb10
Volker Hilsheimer 2020-09-21 17:34:52 +02:00
parent 0caffd37fb
commit 5a8e121cfa
2 changed files with 6 additions and 3 deletions

View File

@ -437,9 +437,10 @@ QSize QStyledItemDelegate::sizeHint(const QStyleOptionViewItem &option,
\sa QAbstractItemDelegate::createEditor()
*/
QWidget *QStyledItemDelegate::createEditor(QWidget *parent,
const QStyleOptionViewItem &,
const QStyleOptionViewItem &option,
const QModelIndex &index) const
{
Q_UNUSED(option);
Q_D(const QStyledItemDelegate);
if (!index.isValid())
return nullptr;

View File

@ -3050,8 +3050,9 @@ void QTableView::timerEvent(QTimerEvent *event)
\sa columnMoved()
*/
void QTableView::rowMoved(int, int oldIndex, int newIndex)
void QTableView::rowMoved(int row, int oldIndex, int newIndex)
{
Q_UNUSED(row);
Q_D(QTableView);
updateGeometries();
@ -3078,8 +3079,9 @@ void QTableView::rowMoved(int, int oldIndex, int newIndex)
\sa rowMoved()
*/
void QTableView::columnMoved(int, int oldIndex, int newIndex)
void QTableView::columnMoved(int column, int oldIndex, int newIndex)
{
Q_UNUSED(column);
Q_D(QTableView);
updateGeometries();