From a78d2da4409c73cf44047a56ee25f9677a23d21b Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 15 Oct 2017 23:42:45 +0200 Subject: [PATCH] QTest::addRow -> QTest::newRow addRow is only in since Qt 5.9 and we don't need it --- autotests/parttest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autotests/parttest.cpp b/autotests/parttest.cpp index 3f324dfd2..7d7d17594 100644 --- a/autotests/parttest.cpp +++ b/autotests/parttest.cpp @@ -341,11 +341,11 @@ void PartTest::testeTextSelectionOverAndAcrossLinks_data() QTest::addColumn("expectedResult"); // can text-select "over and across" hyperlink. - QTest::addRow("start selection before link") << 0.1564 << 0.2943 << QStringLiteral(" a link: foo@foo.b"); + QTest::newRow("start selection before link") << 0.1564 << 0.2943 << QStringLiteral(" a link: foo@foo.b"); // can text-select starting at text and ending selection in middle of hyperlink. - QTest::addRow("start selection in the middle of the link") << 0.28 << 0.382 << QStringLiteral("o.bar\n"); + QTest::newRow("start selection in the middle of the link") << 0.28 << 0.382 << QStringLiteral("o.bar\n"); // text selection works when selecting left to right or right to left - QTest::addRow("start selection after link") << 0.40 << 0.05 << QStringLiteral("This is a link: foo@foo.bar\n"); + QTest::newRow("start selection after link") << 0.40 << 0.05 << QStringLiteral("This is a link: foo@foo.bar\n"); } // can text-select "over and across" hyperlink.