Qt: reduce minimum window size requirement

Strip some padding from the main welcome screen and lower the minimum
width to allow the window to be shrinked. Even when a capture file was
open, the minimum dimensions from the main welcome screen would apply.

The minimum dimensions on Arch Linux with Qt 5.8.0-5 and Plasma 5.9.2
(with the default Breeze theme) for a window have changes as follows:
 - main screen/pcap loaded: 746x626 -> 702x590
 - with search bar opened:  826x658 -> 826x622
(These numbers exclude 35x10 window decoration.)

Change-Id: Iccc43ee55803abb8105c0d9664368aab09e8cfcf
Reviewed-on: https://code.wireshark.org/review/20343
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Peter Wu 2017-03-02 22:19:19 +01:00
parent 85aa48cef2
commit a539036339
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ MainWelcome::MainWelcome(QWidget *parent) :
setStyleSheet(QString(
"MainWelcome {"
" padding: 2em;"
" padding: 1em;"
" }"
"MainWelcome, QAbstractItemView {"
" background-color: palette(base);"

View File

@ -40,7 +40,7 @@
<widget class="QWidget" name="bannerLayout" native="true">
<property name="minimumSize">
<size>
<width>650</width>
<width>550</width>
<height>0</height>
</size>
</property>