summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2022-07-18 15:10:15 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-07-22 01:45:50 +0000
commitd8e584c7a6466483039a1ddba8d65800d58c1052 (patch)
treeecd27ea087eee3d36abbba90a25b9b891a89e03f /tests
parent8523b68b510c09464d4c99f9d8870cc8290389c2 (diff)
QAction: add QT_DEPRECATED_VERSION_6_0 to deprecated methods
And fix all the new warnings. Task-number: QTBUG-104857 Change-Id: I2a5791f495575d71d2344429aca3363f9922e31b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 4b9c738185c771127eb8e7c73868f60bd31f7fce) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp b/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp
index 9719aefe7b..b1928e3785 100644
--- a/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp
+++ b/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp
@@ -4671,7 +4671,7 @@ void tst_QLineEdit::sideWidgets()
template <class T> T *findAssociatedWidget(const QAction *a)
{
- foreach (QWidget *w, a->associatedWidgets()) {
+ foreach (QObject *w, a->associatedObjects()) {
if (T *result = qobject_cast<T *>(w))
return result;
}