[runners/calculator] Port old style connect

Test Plan: Compiles

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24325
wilder-5.18
David Edmundson 7 years ago
parent 0d9e0bce94
commit e0f8167399
  1. 2
      runners/calculator/qalculate_engine.cpp

@ -66,7 +66,7 @@ void QalculateEngine::updateExchangeRates()
QUrl dest = QUrl::fromLocalFile(QFile::decodeName(CALCULATOR->getExchangeRatesFileName().c_str()));
KIO::Job* getJob = KIO::file_copy(source, dest, -1, KIO::Overwrite | KIO::HideProgressInfo);
connect( getJob, SIGNAL(result(KJob*)), this, SLOT(updateResult(KJob*)) );
connect( getJob, &KJob::result, this, &QalculateEngine::updateResult );
}
void QalculateEngine::updateResult(KJob* job)

Loading…
Cancel
Save