From 1cbfaebfc9e493b4033ab39739ba1dbaa192951a Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 23 Sep 2020 11:55:46 +0200 Subject: [PATCH] Fix qdoc warnings: QSplitter Fix prototypes and parameter names. Change-Id: Ic43c72eaaf06f941f652440e750c91546707b79e Reviewed-by: Paul Wicking --- src/widgets/widgets/qsplitter.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/widgets/widgets/qsplitter.cpp b/src/widgets/widgets/qsplitter.cpp index d80d211051..5c292680fa 100644 --- a/src/widgets/widgets/qsplitter.cpp +++ b/src/widgets/widgets/qsplitter.cpp @@ -1191,8 +1191,6 @@ QWidget *QSplitter::replaceWidget(int index, QWidget *widget) } /*! - \fn int QSplitter::indexOf(QWidget *widget) const - Returns the index in the splitter's layout of the specified \a widget, or -1 if \a widget is not found. This also works for handles. @@ -1202,12 +1200,12 @@ QWidget *QSplitter::replaceWidget(int index, QWidget *widget) \sa count(), widget() */ -int QSplitter::indexOf(QWidget *w) const +int QSplitter::indexOf(QWidget *widget) const { Q_D(const QSplitter); for (int i = 0; i < d->list.size(); ++i) { QSplitterLayoutStruct *s = d->list.at(i); - if (s->widget == w || s->handle == w) + if (s->widget == widget || s->handle == widget) return i; } return -1; @@ -1379,7 +1377,7 @@ bool QSplitter::event(QEvent *e) } /*! - \fn QSplitter::splitterMoved(int pos, int index) + \fn void QSplitter::splitterMoved(int pos, int index) This signal is emitted when the splitter handle at a particular \a index has been moved to position \a pos.