bitcoin/bitcoin — pull request #3920 by gubatron (2014-03-21 06:00:09+00:00)
Title: [QT] Fixes feel when resizing the last column on tables (issue #2862)

Re-submitting this pull request with a single commit.

This patch introduces a GUIUtil class that is used when setting up the 2 tables we have so far on the Qt-GUI.
In the past you could only resize the last column, which has BTC amounts from the right border of the column header, something that was rather unnatural.

If a new table were ever to be added to the interface, fixing the last columns resizing behavior is rather simple. Just look at how we initialize here a TableViewLastColumnResizingFixer object when setting up the table header's behavior, and then how we override the resize event of the component (can be the table, or the dialog) and we invoke columnResizingFixer->stretchColumnWidth(columnIndex);

When the window is resized, the second to last column is stretched like before, this was the last fix done.

Video demoing fix here: https://www.youtube.com/watch?v=rkcPO1sLGX8&feature=youtu.be