Mercurial > lcfOS
diff python/ide.py @ 154:81e08e2e7777
Used error icon
author | Windel Bouwman |
---|---|
date | Sat, 02 Mar 2013 10:19:38 +0100 |
parents | b73bc14a3aa3 |
children | d8c735dc31f9 |
line wrap: on
line diff
--- a/python/ide.py Sat Mar 02 09:58:31 2013 +0100 +++ b/python/ide.py Sat Mar 02 10:19:38 2013 +0100 @@ -31,10 +31,11 @@ model = QStandardItemModel() self.setModel(model) self.clicked.connect(self.itemSelected) + self.errorIcon = QIcon('error.png') def setErrorList(self, errorlist): model = QStandardItemModel() for e in errorlist: - item = QStandardItem(str(e)) + item = QStandardItem(self.errorIcon, str(e)) item.setData(e) model.appendRow(item) self.setModel(model) @@ -352,6 +353,10 @@ #self.astViewer.setAst(mods[0]) for err in self.diag.diags: self.buildOutput.append(str(err)) + ce = self.activeMdiChild() + if ce: + print('setting errors') + ce.setErrors(self.diag.diags) self.buildOutput.append("Done!") if __name__ == '__main__':