More alignment fixes

This commit is contained in:
Juergen Spitzmueller 2018-12-25 18:20:02 +01:00
parent 47ecd75d7f
commit 7610179bc7
4 changed files with 11 additions and 17 deletions

View File

@ -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);
}

View File

@ -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()));

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>283</width>
<height>423</height>
<height>359</height>
</rect>
</property>
<property name="windowTitle">
@ -100,7 +100,7 @@
</spacer>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<layout class="QVBoxLayout" name="cbVerticalLayout">
<item>
<widget class="QCheckBox" name="searchbackCB">
<property name="toolTip">
@ -134,23 +134,10 @@
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<layout class="QVBoxLayout" name="pbVerticalLayout">
<item>
<widget class="QPushButton" name="findNextPB">
<property name="enabled">

View File

@ -24,7 +24,7 @@
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_2">
<layout class="QGridLayout" name="mainGridLayout">
<item row="0" column="0" rowspan="2">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">