Use global threadpool

This commit is contained in:
Nicolas Werner 2021-12-21 15:57:46 +01:00
parent 8edc46dc16
commit 1ea9dc469b
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 7 additions and 18 deletions

View file

@ -70,12 +70,11 @@ clipRadius(QPixmap img, double radius)
JdenticonResponse::JdenticonResponse(const QString &key,
bool crop,
double radius,
const QSize &requestedSize,
QThreadPool *pool)
const QSize &requestedSize)
{
auto runnable = new JdenticonRunnable(key, crop, radius, requestedSize);
connect(runnable, &JdenticonRunnable::done, this, &JdenticonResponse::handleDone);
pool->start(runnable);
QThreadPool::globalInstance()->start(runnable);
}
JdenticonRunnable::JdenticonRunnable(const QString &key,