From fce9ec05432073d1b24164814511eadb6beee737 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sat, 8 Aug 2020 02:25:45 +0200 Subject: Widgets: make indexOf take const QWidget * As it's the right thing to do to preserve const correctness. Fixes: QTBUG-85833 Change-Id: I0d45442c5e2b997998bba8dc894fee75da3e8e8c Reviewed-by: Samuel Gaist --- src/widgets/widgets/qtabwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/widgets/qtabwidget.cpp') diff --git a/src/widgets/widgets/qtabwidget.cpp b/src/widgets/widgets/qtabwidget.cpp index 35b097b0c7..3c2bc4f66b 100644 --- a/src/widgets/widgets/qtabwidget.cpp +++ b/src/widgets/widgets/qtabwidget.cpp @@ -719,7 +719,7 @@ void QTabWidget::setCurrentIndex(int index) Returns the index position of the page occupied by the widget \a w, or -1 if the widget cannot be found. */ -int QTabWidget::indexOf(QWidget* w) const +int QTabWidget::indexOf(const QWidget *w) const { Q_D(const QTabWidget); return d->stack->indexOf(w); -- cgit v1.2.3