diff --git a/src/frontends/qt/InsetParamsDialog.cpp b/src/frontends/qt/InsetParamsDialog.cpp index d2c0cae45d..67cbfdd94e 100644 --- a/src/frontends/qt/InsetParamsDialog.cpp +++ b/src/frontends/qt/InsetParamsDialog.cpp @@ -80,6 +80,8 @@ InsetParamsDialog::InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget) widget->dialogTitle()), d(new Private) { setupUi(this); + // Remove margins since the widget is embedded in dialog which provides them + widget->layout()->setContentsMargins(0, 0, 0, 0); setInsetParamsWidget(widget); immediateApplyCB->setChecked(false); synchronizedCB->setChecked(true); @@ -87,6 +89,8 @@ InsetParamsDialog::InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget) setFocusProxy(widget); newPB = buttonBox->addButton(qt_("Ne&w Inset"), QDialogButtonBox::ActionRole); + // fix height to minimum + setFixedHeight(sizeHint().height()); } InsetParamsDialog::~InsetParamsDialog() diff --git a/src/frontends/qt/ui/InsetParamsUi.ui b/src/frontends/qt/ui/InsetParamsUi.ui index af6312f1c4..c7e6ee1b49 100644 --- a/src/frontends/qt/ui/InsetParamsUi.ui +++ b/src/frontends/qt/ui/InsetParamsUi.ui @@ -7,7 +7,7 @@ 0 0 484 - 108 + 104 @@ -17,30 +17,40 @@ Inset Parameter Configuration - + + 12 + + - 0 + 1 - - - - Qt::Horizontal + + + + QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset - - - 31 - 31 - - - + - + + + + + Qt::Horizontal + + + + 0 + 0 + + + + @@ -66,31 +76,18 @@ - - - - 6 + + + + Qt::Vertical - - 0 + + + 20 + 10 + - - 0 - - - 0 - - - 0 - - - - - QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset - - - - +