149 isCall = itm.data(0, Qt.UserRole) |
149 isCall = itm.data(0, Qt.UserRole) |
150 if isCall: |
150 if isCall: |
151 call = "->" |
151 call = "->" |
152 else: |
152 else: |
153 call = "<-" |
153 call = "<-" |
154 f.write("{0} {1} || {2}\n".format(call, |
154 f.write("{0} {1} || {2}\n".format( |
|
155 call, |
155 itm.text(1), itm.text(2))) |
156 itm.text(1), itm.text(2))) |
156 itm = self.callTrace.itemBelow(itm) |
157 itm = self.callTrace.itemBelow(itm) |
157 f.close() |
158 f.close() |
158 except IOError as err: |
159 except IOError as err: |
159 E5MessageBox.critical( |
160 E5MessageBox.critical( |
227 |
228 |
228 if self.__projectMode: |
229 if self.__projectMode: |
229 fromFile = self.__project.getRelativePath(fromFile) |
230 fromFile = self.__project.getRelativePath(fromFile) |
230 toFile = self.__project.getRelativePath(toFile) |
231 toFile = self.__project.getRelativePath(toFile) |
231 |
232 |
232 itm = QTreeWidgetItem(parentItem, ["", |
233 itm = QTreeWidgetItem( |
233 self.__entryFormat.format(fromFile, fromLine, fromFunction), |
234 parentItem, |
234 self.__entryFormat.format(toFile, toLine, toFunction)]) |
235 ["", |
|
236 self.__entryFormat.format(fromFile, fromLine, fromFunction), |
|
237 self.__entryFormat.format(toFile, toLine, toFunction)]) |
235 itm.setIcon(0, icon) |
238 itm.setIcon(0, icon) |
236 itm.setData(0, Qt.UserRole, isCall) |
239 itm.setData(0, Qt.UserRole, isCall) |
237 itm.setExpanded(True) |
240 itm.setExpanded(True) |
238 |
241 |
239 if isCall: |
242 if isCall: |