HomePhabricator

[QT] Fixes feel when resizing the last column on tables (issue #2862)
8c29273ff058Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

[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);

Details

Provenance
gubatron <gubatron@gmail.com>Authored on Mar 21 2014, 05:45
deadalnixPushed on May 14 2017, 22:04
Parents
rABC6539cfc583c5: Merge pull request #3917
Branches
Unknown
Tags
Unknown

Event Timeline