forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user