134 """ |
134 """ |
135 self.__debuggerLabel.setText(debuggerId) |
135 self.__debuggerLabel.setText(debuggerId) |
136 |
136 |
137 self.__callStackList.clear() |
137 self.__callStackList.clear() |
138 for fname, fline, ffunc, fargs in stack: |
138 for fname, fline, ffunc, fargs in stack: |
139 if self.__projectMode: |
139 dfname = ( |
140 dfname = self.__project.getRelativePath(fname) |
140 self.__project.getRelativePath(fname) |
141 else: |
141 if self.__projectMode else |
142 dfname = fname |
142 fname |
143 if ffunc and not ffunc.startswith("<"): |
143 ) |
|
144 itm = ( |
144 # use normal format |
145 # use normal format |
145 itm = QTreeWidgetItem( |
146 QTreeWidgetItem( |
146 self.__callStackList, |
147 self.__callStackList, |
147 [self.__entryFormat.format(dfname, fline, ffunc, fargs)] |
148 [self.__entryFormat.format(dfname, fline, ffunc, fargs)] |
148 ) |
149 ) |
149 else: |
150 if ffunc and not ffunc.startswith("<") else |
150 # use short format |
151 # use short format |
151 itm = QTreeWidgetItem( |
152 QTreeWidgetItem( |
152 self.__callStackList, |
153 self.__callStackList, |
153 [self.__entryFormatShort.format(dfname, fline)] |
154 [self.__entryFormatShort.format(dfname, fline)] |
154 ) |
155 ) |
|
156 ) |
155 itm.setData(0, self.FilenameRole, fname) |
157 itm.setData(0, self.FilenameRole, fname) |
156 itm.setData(0, self.LinenoRole, fline) |
158 itm.setData(0, self.LinenoRole, fline) |
157 |
159 |
158 self.__callStackList.resizeColumnToContents(0) |
160 self.__callStackList.resizeColumnToContents(0) |
159 |
161 |