mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-03 19:10:53 +01:00
Changed QtConcurrent::run() to QThreadPool::start() to fix compile warning
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include "utils/qetsettings.h"
|
||||
|
||||
#include <QStyleFactory>
|
||||
#include <QtConcurrentRun>
|
||||
#include <QThreadPool>
|
||||
|
||||
/**
|
||||
@brief myMessageOutput
|
||||
@@ -216,7 +216,7 @@ QGuiApplication::setHighDpiScaleFactorRoundingPolicy(QetSettings::hdpiScaleFacto
|
||||
QObject::connect(&app, &SingleApplication::receivedMessage,
|
||||
&qetapp, &QETApp::receiveMessage);
|
||||
|
||||
QtConcurrent::run([=]()
|
||||
QThreadPool::globalInstance()->start([=]()
|
||||
{
|
||||
// for debugging
|
||||
qInstallMessageHandler(myMessageOutput);
|
||||
|
||||
Reference in New Issue
Block a user