diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2018-05-03 14:44:49 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-05-03 13:40:12 +0000 |
commit | c4ffae6aade1a7ae98e647c41f0e17c044ac582f (patch) | |
tree | efb3c504220c1489b028fa7315d201df4454a916 | |
parent | 47bf21a6c8dc11b91009cbb1a2b5ec723b1a9ea9 (diff) |
Qt: Set margins in createEditor layout
Try to align the QComboBox with the other elements.
Change-Id: I63acdc2eb463e8806edffe27d67423dc37d161e5
Reviewed-on: https://code.wireshark.org/review/27305
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r-- | ui/qt/extcap_argument.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/extcap_argument.cpp b/ui/qt/extcap_argument.cpp index e47938be40..1c46f0d857 100644 --- a/ui/qt/extcap_argument.cpp +++ b/ui/qt/extcap_argument.cpp @@ -117,6 +117,8 @@ QWidget * ExtArgSelector::createEditor(QWidget * parent) QWidget * editor = new QWidget(parent); QHBoxLayout * layout = new QHBoxLayout(); + QMargins margins = layout->contentsMargins(); + layout->setContentsMargins(0, margins.top(), 0, margins.bottom()); boxSelection = new QComboBox(parent); layout->addWidget(boxSelection); |