Auto-resize Settings to fit wide widgets
authorShane Synan <digitalcircuit36939@gmail.com>
Wed, 13 Jul 2016 15:27:43 +0000 (11:27 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 7 Sep 2016 21:12:02 +0000 (23:12 +0200)
commit65c463f0154b12bbcd15d3b51ac231dd530fad3a
treedbb1182ff739ea4bdb22e5d066c9e633cd2e9593
parentd6129e6eb33cabdda455b1c2a71f9fb9bf4efb9d
Auto-resize Settings to fit wide widgets

Add check for settingsTree width.  If it's not at the maximum width,
resize the Settings dialog to fit it.  Qt should keep the dialog
within bounds of the screen, and the user can always resize the
dialog if needed.

This fixes the Settings dialog squashing the settings tree with the
Sonnet spell-checking widget, Ubuntu 16.04 on en_US, and a 1920×1080
screen.
src/qtui/settingsdlg.cpp