From 8214cc5273a840f2f7b6708cc05752d7d501ab3e Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Tue, 27 Aug 2019 07:29:49 +0200 Subject: [PATCH] Use QLatin1String here --- autotests/kextracolumnsproxymodeltest.cpp | 4 ++-- autotests/proxymodeltestsuite/proxymodeltest.cpp | 2 +- tests/proxymodeltestapp/breadcrumbnavigationwidget.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autotests/kextracolumnsproxymodeltest.cpp b/autotests/kextracolumnsproxymodeltest.cpp index 04789cf..4993750 100644 --- a/autotests/kextracolumnsproxymodeltest.cpp +++ b/autotests/kextracolumnsproxymodeltest.cpp @@ -169,9 +169,9 @@ private Q_SLOTS: QVERIFY(!secondParent.parent().isValid()); QCOMPARE(indexToText(pm.index(0, 0, secondParent).parent()), indexToText(secondParent)); QCOMPARE(indexToText(pm.index(0, 3, secondParent).parent()), indexToText(secondParent)); - QVERIFY(indexToText(pm.index(0, 4)).startsWith(QStringLiteral("0,4,"))); + QVERIFY(indexToText(pm.index(0, 4)).startsWith(QLatin1String("0,4,"))); QCOMPARE(indexToText(pm.index(0, 4, secondParent).parent()), indexToText(secondParent)); - QVERIFY(indexToText(pm.index(0, 5)).startsWith(QStringLiteral("0,5,"))); + QVERIFY(indexToText(pm.index(0, 5)).startsWith(QLatin1String("0,5,"))); QCOMPARE(indexToText(pm.index(0, 5, secondParent).parent()), indexToText(secondParent)); QCOMPARE(pm.index(0, 0).sibling(0, 4).column(), 4); diff --git a/autotests/proxymodeltestsuite/proxymodeltest.cpp b/autotests/proxymodeltestsuite/proxymodeltest.cpp index 6192ae5..c30b59f 100644 --- a/autotests/proxymodeltestsuite/proxymodeltest.cpp +++ b/autotests/proxymodeltestsuite/proxymodeltest.cpp @@ -551,7 +551,7 @@ void ProxyModelTest::doTest() } static int numTests = 0; - if (qApp->arguments().contains(QStringLiteral("-count"))) { + if (qApp->arguments().contains(QLatin1String("-count"))) { qDebug() << "numTests" << ++numTests; } diff --git a/tests/proxymodeltestapp/breadcrumbnavigationwidget.cpp b/tests/proxymodeltestapp/breadcrumbnavigationwidget.cpp index a23207d..8730f15 100644 --- a/tests/proxymodeltestapp/breadcrumbnavigationwidget.cpp +++ b/tests/proxymodeltestapp/breadcrumbnavigationwidget.cpp @@ -89,7 +89,7 @@ QVariant KBreadcrumbNavigationProxyModel::data(const QModelIndex &index, int rol dataList.prepend(sourceIndex.data().toString()); sourceIndex = sourceIndex.parent(); } - return dataList.join(QStringLiteral(" > ")); + return dataList.join(QLatin1String(" > ")); } return KSelectionProxyModel::data(index, role); }