diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-04-16 19:18:25 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-04-16 19:18:25 +0200 |
commit | 249984f4f93fe6fae81391f474e4d64ad9df3d6d (patch) | |
tree | 27762badaed1e1bee8293ae04e85d30270f4866e /src/qt/initexecutor.cpp | |
parent | d1b3dfb275fd98e37cfe8a0f7cea7d03595af2e8 (diff) | |
download | bitcoin-249984f4f93fe6fae81391f474e4d64ad9df3d6d.tar.xz |
qt: Replace `GUIUtil::ObjectInvoke()` with `QMetaObject::invokeMethod()`
The `GUIUtil::ObjectInvoke()` template function was a replacement of
the `QMetaObject::invokeMethod()` functor overload which is available
in Qt 5.10+.
No behavior change.
Diffstat (limited to 'src/qt/initexecutor.cpp')
-rw-r--r-- | src/qt/initexecutor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/initexecutor.cpp b/src/qt/initexecutor.cpp index 24ae7ba73d..d269dfec71 100644 --- a/src/qt/initexecutor.cpp +++ b/src/qt/initexecutor.cpp @@ -5,13 +5,13 @@ #include <qt/initexecutor.h> #include <interfaces/node.h> -#include <qt/guiutil.h> #include <util/system.h> #include <util/threadnames.h> #include <exception> #include <QDebug> +#include <QMetaObject> #include <QObject> #include <QString> #include <QThread> @@ -39,7 +39,7 @@ void InitExecutor::handleRunawayException(const std::exception* e) void InitExecutor::initialize() { - GUIUtil::ObjectInvoke(&m_context, [this] { + QMetaObject::invokeMethod(&m_context, [this] { try { util::ThreadRename("qt-init"); qDebug() << "Running initialization in thread"; @@ -56,7 +56,7 @@ void InitExecutor::initialize() void InitExecutor::shutdown() { - GUIUtil::ObjectInvoke(&m_context, [this] { + QMetaObject::invokeMethod(&m_context, [this] { try { qDebug() << "Running Shutdown in thread"; m_node.appShutdown(); |