From 7610179bc7bc16042cc0c6b9e558c913df633c09 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 25 Dec 2018 18:20:02 +0100 Subject: [PATCH] More alignment fixes --- src/frontends/qt4/FindAndReplace.cpp | 4 ++++ src/frontends/qt4/GuiSearch.cpp | 3 +++ src/frontends/qt4/ui/FindAndReplaceUi.ui | 19 +++---------------- src/frontends/qt4/ui/SearchUi.ui | 2 +- 4 files changed, 11 insertions(+), 17 deletions(-) diff --git a/src/frontends/qt4/FindAndReplace.cpp b/src/frontends/qt4/FindAndReplace.cpp index 96fcd588bd..2b8e2974f6 100644 --- a/src/frontends/qt4/FindAndReplace.cpp +++ b/src/frontends/qt4/FindAndReplace.cpp @@ -69,6 +69,10 @@ FindAndReplaceWidget::FindAndReplaceWidget(GuiView & view) replace_work_area_->stopBlinkingCaret(); old_buffer_ = view_.documentBufferView() ? &(view_.documentBufferView()->buffer()) : 0; + + // align items on top + cbVerticalLayout->setAlignment(Qt::AlignTop); + pbVerticalLayout->setAlignment(Qt::AlignTop); } diff --git a/src/frontends/qt4/GuiSearch.cpp b/src/frontends/qt4/GuiSearch.cpp index 02678fae60..4e0c354fc6 100644 --- a/src/frontends/qt4/GuiSearch.cpp +++ b/src/frontends/qt4/GuiSearch.cpp @@ -50,6 +50,9 @@ GuiSearch::GuiSearch(GuiView & lv) // fix height to minimum setFixedHeight(sizeHint().height()); + // align items in grid on top + mainGridLayout->setAlignment(Qt::AlignTop); + connect(buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(slotButtonBox(QAbstractButton *))); connect(findPB, SIGNAL(clicked()), this, SLOT(findClicked())); diff --git a/src/frontends/qt4/ui/FindAndReplaceUi.ui b/src/frontends/qt4/ui/FindAndReplaceUi.ui index e6d3b32784..22f45e37f5 100644 --- a/src/frontends/qt4/ui/FindAndReplaceUi.ui +++ b/src/frontends/qt4/ui/FindAndReplaceUi.ui @@ -7,7 +7,7 @@ 0 0 283 - 423 + 359 @@ -100,7 +100,7 @@ - + @@ -134,23 +134,10 @@ - - - - Qt::Vertical - - - - 20 - 40 - - - - - + diff --git a/src/frontends/qt4/ui/SearchUi.ui b/src/frontends/qt4/ui/SearchUi.ui index d4bd85ea59..8a94abb0ed 100644 --- a/src/frontends/qt4/ui/SearchUi.ui +++ b/src/frontends/qt4/ui/SearchUi.ui @@ -24,7 +24,7 @@ - +