This patch aims to introduce a "clever" way to wrap the message ("error") column in the Problem Reporter toolview, something that I have often missed (e.g. because of very long file messages).
Activating text wrapping isn't very difficult, getting the rows at the appropriate height isn't because I haven't been able to get a reliable indicator that text is indeed being wrapped (= displayed on more than a single line). I'm thus guessing it by comparing the standard delegate sizeHint to the width that will actually be used; if larger wrapping will result.
Ideally that rendering width will be the width selected by the user or else 2/3 of the toolview width (which works well for me but can be another value of course).
Annoyingly I haven't been able to figure out how to detect *user* induced changes to the column width (hence the approximation of waiting for the 1st column redraw). In addition, the delegate's sizeHint() method isn't re-called when the user is or has finished resizing the column.
Finally, the calculated height for wrapped text is sometimes a bit too low (or the sizeHint is ignored?) but is usually much too high initially when starting KDevelop with the Problem view open.
This is thus very much a work in process; I'm putting it here because I think it is potentially useful and hope to get a few nudges to get the glitches out of my code.