eric6/WebBrowser/Network/QtHelpSchemeHandler.py

branch
maintenance
changeset 8176
31965986ecd1
parent 8043
0acf98cd089a
parent 8143
2c730d5fd177
child 8273
698ae46f40a4
equal deleted inserted replaced
8153:e01ae92db699 8176:31965986ecd1
84 reply = QtHelpSchemeReply(job, self.__engine) 84 reply = QtHelpSchemeReply(job, self.__engine)
85 reply.closed.connect(lambda: self.__replyClosed(reply)) 85 reply.closed.connect(lambda: self.__replyClosed(reply))
86 self.__replies.append(reply) 86 self.__replies.append(reply)
87 job.reply(reply.mimeType(), reply) 87 job.reply(reply.mimeType(), reply)
88 else: 88 else:
89 job.fail(QWebEngineUrlRequestJob.UrlInvalid) 89 job.fail(QWebEngineUrlRequestJob.Error.UrlInvalid)
90 90
91 def __replyClosed(self, reply): 91 def __replyClosed(self, reply):
92 """ 92 """
93 Private slot handling the closed signal of a reply. 93 Private slot handling the closed signal of a reply.
94 94
170 """</html>""").format(url.toString()) 170 """</html>""").format(url.toString())
171 .encode("utf-8")) 171 .encode("utf-8"))
172 172
173 with E5MutexLocker(self.__mutex): 173 with E5MutexLocker(self.__mutex):
174 self.__buffer.setData(data) 174 self.__buffer.setData(data)
175 self.__buffer.open(QIODevice.ReadOnly) 175 self.__buffer.open(QIODevice.OpenModeFlag.ReadOnly)
176 self.open(QIODevice.ReadOnly) 176 self.open(QIODevice.OpenModeFlag.ReadOnly)
177 177
178 self.readyRead.emit() 178 self.readyRead.emit()
179 179
180 def bytesAvailable(self): 180 def bytesAvailable(self):
181 """ 181 """

eric ide

mercurial