How the initial terminal size is set: * TerminalDisplay calculates size in pixels from requested columns/rows count, and uses it as the size hint. * TabbedViewContainer, which wraps TerminalDisplay and QTabBar, and MainWindow, which wraps TabbedViewContainer, calculates their sizes from their children's size hints. It is assumed the size is equal to children's bounding rectangle size, eventually increased by visible margins. * TerminalDisplay adjusts its size to fill the window. In this case, this should change nothing. QTabWidget's (TabbedViewContainer base class) sizeHint() includes some (*nonexistent*) margins added by widgets style (by default 2*2, 2*4 in Breeze). Those were propagated to the window size and were increasing TerminalDisplay size. Reimplemented TabbedViewContainer::sizeHint() returns the size of its children's bounding rectangle.wilder-portage
parent
47d97aa0b3
commit
efb621d091
2 changed files with 38 additions and 0 deletions
Loading…
Reference in new issue