Commit f1c590c3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated method

parent 120ee5cb
......@@ -290,7 +290,7 @@ void OdrsReviewsBackend::parseReviews(const QJsonDocument &document, AbstractRes
const int usefulFavorable = review.value(QStringLiteral("karma_up")).toInt();
const int usefulTotal = review.value(QStringLiteral("karma_down")).toInt() + usefulFavorable;
QDateTime dateTime;
dateTime.setTime_t(review.value(QStringLiteral("date_created")).toInt());
dateTime.setSecsSinceEpoch(review.value(QStringLiteral("date_created")).toInt());
ReviewPtr r(new Review(review.value(QStringLiteral("app_id")).toString(), resource->packageName(),
review.value(QStringLiteral("locale")).toString(), review.value(QStringLiteral("summary")).toString(),
review.value(QStringLiteral("description")).toString(), review.value(QStringLiteral("user_display")).toString(),
......
......@@ -250,7 +250,7 @@ QProcess* PackageKitNotifier::checkAptVariable(const QString &aptconfig, const Q
{
QProcess* process = new QProcess;
process->start(aptconfig, {QStringLiteral("dump")});
connect(process, static_cast<void(QProcess::*)(int)>(&QProcess::finished), this, [func, process, varname](int code) {
connect(process, static_cast<void(QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), this, [func, process, varname](int code) {
if (code != 0)
return;
......@@ -266,7 +266,7 @@ QProcess* PackageKitNotifier::checkAptVariable(const QString &aptconfig, const Q
}
func({});
});
connect(process, static_cast<void(QProcess::*)(int)>(&QProcess::finished), process, &QObject::deleteLater);
connect(process, static_cast<void(QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), process, &QObject::deleteLater);
return process;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment