From c34e457bf9506ca068491eda41467013b180e544 Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 10 Sep 2019 09:42:22 +0200 Subject: [KConfig] port away from deprecated methods in Qt 5.14 Summary: In kconf_update, the ctime usage used to be about metadata change time (buff.st_ctime, before it got ported to the misnamed created()). I ported it to birthTime, because I think date of birth is a more useful way to identify a file than date of permission change which doesn't really matter to us. But in practice, I can't help but wonder if mtime alone wouldn't be enough. For the QStringLiteral("%%1").arg(i) bit, I tested it in tst_qstring, the first % is left untouched. Test Plan: make && ctest Reviewers: mdawson, arichardson, vkrause Reviewed By: vkrause Subscribers: pino, arojas, mlaurent, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D23815 --- src/core/kcoreconfigskeleton.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/kcoreconfigskeleton.cpp') diff --git a/src/core/kcoreconfigskeleton.cpp b/src/core/kcoreconfigskeleton.cpp index 384efdb4..2d8048a2 100644 --- a/src/core/kcoreconfigskeleton.cpp +++ b/src/core/kcoreconfigskeleton.cpp @@ -255,7 +255,7 @@ bool KCoreConfigSkeleton::ItemUrl::isEqual(const QVariant &v) const QVariant KCoreConfigSkeleton::ItemUrl::property() const { - return qVariantFromValue(mReference); + return QVariant::fromValue(mReference); } KCoreConfigSkeleton::ItemProperty::ItemProperty(const QString &_group, @@ -955,7 +955,7 @@ bool KCoreConfigSkeleton::ItemUrlList::isEqual(const QVariant &v) const QVariant KCoreConfigSkeleton::ItemUrlList::property() const { - return qVariantFromValue >(mReference); + return QVariant::fromValue >(mReference); } KCoreConfigSkeleton::ItemIntList::ItemIntList(const QString &_group, const QString &_key, @@ -990,7 +990,7 @@ bool KCoreConfigSkeleton::ItemIntList::isEqual(const QVariant &v) const QVariant KCoreConfigSkeleton::ItemIntList::property() const { - return qVariantFromValue< QList >(mReference); + return QVariant::fromValue< QList >(mReference); } //static int kCoreConfigSkeletionDebugArea() { static int s_area = KDebug::registerArea("kdecore (KConfigSkeleton)"); return s_area; } -- cgit v1.2.1