E5Network/E5NetworkMonitor.py

changeset 1131
7781e396c903
parent 1112
8a7d1b9d18db
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
71 71
72 @param networkAccessManager reference to the network access manager 72 @param networkAccessManager reference to the network access manager
73 (QNetworkAccessManager) 73 (QNetworkAccessManager)
74 @param parent reference to the parent widget (QWidget) 74 @param parent reference to the parent widget (QWidget)
75 """ 75 """
76 QDialog.__init__(self, parent) 76 super().__init__(parent)
77 self.setupUi(self) 77 self.setupUi(self)
78 78
79 self.clearButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png")) 79 self.clearButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png"))
80 80
81 self.__requestHeaders = QStandardItemModel(self) 81 self.__requestHeaders = QStandardItemModel(self)
123 Protected method called upon closing the dialog. 123 Protected method called upon closing the dialog.
124 124
125 @param evt reference to the close event object (QCloseEvent) 125 @param evt reference to the close event object (QCloseEvent)
126 """ 126 """
127 self.__class__._monitor = None 127 self.__class__._monitor = None
128 QDialog.closeEvent(self, evt) 128 super().closeEvent(evt)
129 129
130 def reject(self): 130 def reject(self):
131 """ 131 """
132 Public slot to close the dialog with a Reject status. 132 Public slot to close the dialog with a Reject status.
133 """ 133 """
134 self.__class__._monitor = None 134 self.__class__._monitor = None
135 QDialog.reject(self) 135 super().reject()
136 136
137 def __currentChanged(self, current, previous): 137 def __currentChanged(self, current, previous):
138 """ 138 """
139 Private slot to handle a change of the current index. 139 Private slot to handle a change of the current index.
140 140
209 209
210 @param networkAccessManager reference to the network access manager 210 @param networkAccessManager reference to the network access manager
211 (QNetworkAccessManager) 211 (QNetworkAccessManager)
212 @param parent reference to the parent object (QObject) 212 @param parent reference to the parent object (QObject)
213 """ 213 """
214 QAbstractTableModel.__init__(self, parent) 214 super().__init__(parent)
215 215
216 self.__headerData = [ 216 self.__headerData = [
217 self.trUtf8("Method"), 217 self.trUtf8("Method"),
218 self.trUtf8("Address"), 218 self.trUtf8("Address"),
219 self.trUtf8("Response"), 219 self.trUtf8("Response"),

eric ide

mercurial