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(); replace_work_area_->stopBlinkingCaret();
old_buffer_ = view_.documentBufferView() ? old_buffer_ = view_.documentBufferView() ?
&(view_.documentBufferView()->buffer()) : 0; &(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 // fix height to minimum
setFixedHeight(sizeHint().height()); setFixedHeight(sizeHint().height());
// align items in grid on top
mainGridLayout->setAlignment(Qt::AlignTop);
connect(buttonBox, SIGNAL(clicked(QAbstractButton *)), connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
this, SLOT(slotButtonBox(QAbstractButton *))); this, SLOT(slotButtonBox(QAbstractButton *)));
connect(findPB, SIGNAL(clicked()), this, SLOT(findClicked())); connect(findPB, SIGNAL(clicked()), this, SLOT(findClicked()));

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>283</width> <width>283</width>
<height>423</height> <height>359</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -100,7 +100,7 @@
</spacer> </spacer>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="cbVerticalLayout">
<item> <item>
<widget class="QCheckBox" name="searchbackCB"> <widget class="QCheckBox" name="searchbackCB">
<property name="toolTip"> <property name="toolTip">
@ -134,23 +134,10 @@
</property> </property>
</widget> </widget>
</item> </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> </layout>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="pbVerticalLayout">
<item> <item>
<widget class="QPushButton" name="findNextPB"> <widget class="QPushButton" name="findNextPB">
<property name="enabled"> <property name="enabled">

View File

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