E5Network/E5NetworkMonitor.py

changeset 3201
0f115f6db6cb
parent 3190
a9a94491c4fd
child 3345
071afe8be2a1
equal deleted inserted replaced
3200:83bde5e6f146 3201:0f115f6db6cb
48 (QNetworkAccessManager) 48 (QNetworkAccessManager)
49 @return reference to the network monitor singleton (E5NetworkMonitor) 49 @return reference to the network monitor singleton (E5NetworkMonitor)
50 """ 50 """
51 if cls._monitor is None: 51 if cls._monitor is None:
52 cls._monitor = E5NetworkMonitor(networkAccessManager) 52 cls._monitor = E5NetworkMonitor(networkAccessManager)
53 cls._monitor.setAttribute(Qt.WA_DeleteOnClose, True)
54 53
55 return cls._monitor 54 return cls._monitor
56 55
57 @classmethod 56 @classmethod
58 def closeMonitor(cls): 57 def closeMonitor(cls):

eric ide

mercurial