diff options
author | Marco Bubke <marco.bubke@qt.io> | 2019-02-19 19:20:57 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2019-02-22 12:09:00 +0000 |
commit | 8c781f7e6aa763a4caa21c5f5c5504b79634ea46 (patch) | |
tree | 987a87ddcfa5d68f24aa0b92ddb0120beb791a20 /src/plugins/clangrefactoring | |
parent | 256d140933216b64123d1c50dd5e047898037ec2 (diff) |
Clang: Fix progress bar
Sometimes the messages are not send immediately, so we force it.
Task-number: QTCREATORBUG-21957
Change-Id: I9526cb4b4e3dd8b7a02e15f77bffdc51917d47c8
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/clangrefactoring')
-rw-r--r-- | src/plugins/clangrefactoring/refactoringconnectionclient.cpp | 9 | ||||
-rw-r--r-- | src/plugins/clangrefactoring/refactoringconnectionclient.h | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/plugins/clangrefactoring/refactoringconnectionclient.cpp b/src/plugins/clangrefactoring/refactoringconnectionclient.cpp index 865c9d53d1..ff66ec20cb 100644 --- a/src/plugins/clangrefactoring/refactoringconnectionclient.cpp +++ b/src/plugins/clangrefactoring/refactoringconnectionclient.cpp @@ -44,9 +44,8 @@ QString currentProcessId() RefactoringConnectionClient::RefactoringConnectionClient(RefactoringClientInterface *client) : ConnectionClient(Utils::TemporaryDirectory::masterDirectoryPath() - + QStringLiteral("/ClangRefactoringBackEnd-") - + currentProcessId()), - m_serverProxy(client, nullptr) + + QStringLiteral("/ClangRefactoringBackEnd-") + currentProcessId()) + , m_serverProxy(client) { m_processCreator.setTemporaryDirectoryPattern("clangrefactoringbackend-XXXXXX"); m_processCreator.setArguments({connectionName(), @@ -81,9 +80,9 @@ QString RefactoringConnectionClient::outputName() const return QStringLiteral("RefactoringConnectionClient"); } -void RefactoringConnectionClient::newConnectedServer(QIODevice *ioDevice) +void RefactoringConnectionClient::newConnectedServer(QLocalSocket *localSocket) { - m_serverProxy.setIoDevice(ioDevice); + m_serverProxy.setLocalSocket(localSocket); } } // namespace ClangBackEnd diff --git a/src/plugins/clangrefactoring/refactoringconnectionclient.h b/src/plugins/clangrefactoring/refactoringconnectionclient.h index 16734f7ed9..3db871e6a2 100644 --- a/src/plugins/clangrefactoring/refactoringconnectionclient.h +++ b/src/plugins/clangrefactoring/refactoringconnectionclient.h @@ -44,7 +44,7 @@ protected: void sendEndCommand() override; void resetState() override; QString outputName() const override; - void newConnectedServer(QIODevice *ioDevice) override; + void newConnectedServer(QLocalSocket *localSocket) override; private: RefactoringServerProxy m_serverProxy; |