forked from qt-creator/qt-creator
DiffEditorPlugin: Expose plugin's future synchronizer
Change-Id: I208a0e6b9c9776486972177f845e76d33121a2a3 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
#include <coreplugin/diffservice.h>
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
namespace Utils { class FutureSynchronizer; }
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
template <typename T>
|
||||
class QFuture;
|
||||
@@ -39,9 +41,7 @@ public:
|
||||
|
||||
bool initialize(const QStringList &arguments, QString *errorMessage) final;
|
||||
|
||||
template <typename T>
|
||||
static void addFuture(const QFuture<T> &future) { addFuture(QFuture<void>(future)); }
|
||||
static void addFuture(const QFuture<void> &future);
|
||||
static Utils::FutureSynchronizer *futureSynchronizer();
|
||||
|
||||
private:
|
||||
class DiffEditorPluginPrivate *d = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user