@@ -41,13 +41,13 @@ class ConnectionManager(QtNetwork.QNetworkAccessManager):
4141
4242 # The maximum number of allowed redirects
4343 MAX_REDIRECTS = 5
44- error_message = QtCore .pyqtSignal ('QString' ,'QString' )
44+ error_message = QtCore .Signal ('QString' ,'QString' )
4545 """PyQt signal to send an error message."""
46- warning_message = QtCore .pyqtSignal ('QString' ,'QString' )
46+ warning_message = QtCore .Signal ('QString' ,'QString' )
4747 """PyQt signal to send a warning message."""
48- info_message = QtCore .pyqtSignal ('QString' ,'QString' )
48+ info_message = QtCore .Signal ('QString' ,'QString' )
4949 """PyQt signal to send an info message."""
50- success_message = QtCore .pyqtSignal ('QString' ,'QString' )
50+ success_message = QtCore .Signal ('QString' ,'QString' )
5151 """PyQt signal to send a success message."""
5252
5353 # Dictionary holding requests in progress, so that they can be repeated if
@@ -330,7 +330,7 @@ def get(self, url, callback, *args, **kwargs):
330330 The dialog to send the progress indication to. Will be included in the
331331 reply object so that it is accessible in the downloadProgress slot, by
332332 calling self.sender().property('progressDialog')
333- abortSignal : QtCore.pyqtSignal
333+ abortSignal : QtCore.Signal
334334 This signal will be attached to the reply objects abort() slot, so that
335335 the operation can be aborted from outside if necessary.
336336 *args (optional)
@@ -435,15 +435,15 @@ def post(self, url, callback, data_to_send, *args, **kwargs):
435435
436436 # Sadly, Qt4 and Qt5 show some incompatibility in that QUrl no longer has the
437437 # addQueryItem function in Qt5. This has moved to a differen QUrlQuery object
438- if QtCore .QT_VERSION_STR < '5' :
438+ if QtCore .PYQT_VERSION_STR < '5' :
439439 postdata = QtCore .QUrl ()
440440 else :
441441 postdata = QtCore .QUrlQuery ()
442442 # Add data
443443 for varname in data_to_send :
444444 postdata .addQueryItem (varname , data_to_send .get (varname ))
445445 # Convert to QByteArray for transport
446- if QtCore .QT_VERSION_STR < '5' :
446+ if QtCore .PYQT_VERSION_STR < '5' :
447447 final_postdata = postdata .encodedQuery ()
448448 else :
449449 final_postdata = safe_encode (postdata .toString (QtCore .QUrl .FullyEncoded ))
@@ -481,7 +481,7 @@ def put(self, url, callback, *args, **kwargs):
481481 The dialog to send the progress indication to. Will be included in the
482482 reply object so that it is accessible in the downloadProgress slot, by
483483 calling self.sender().property('progressDialog')
484- abortSignal : QtCore.pyqtSignal
484+ abortSignal : QtCore.Signal
485485 This signal will be attached to the reply objects abort() slot, so that
486486 the operation can be aborted from outside if necessary.
487487 *args (optional)
@@ -544,7 +544,7 @@ def delete(self, url, callback, *args, **kwargs):
544544 function to call whenever an error occurs. Should be able to accept
545545 the reply object as an argument. This function is also called if the
546546 operation is aborted by the user him/herself.
547- abortSignal : QtCore.pyqtSignal
547+ abortSignal : QtCore.Signal
548548 This signal will be attached to the reply objects abort() slot, so that
549549 the operation can be aborted from outside if necessary.
550550 *args (optional)
0 commit comments