mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 08:19:47 -05:00
Change SearchWidget to use a grid layout and remove double margins.
This commit is contained in:
parent
089bcba89f
commit
3e72cd11a3
@ -503,10 +503,12 @@ void DatabaseWidget::showSearch()
|
|||||||
Q_ASSERT(m_lastGroup);
|
Q_ASSERT(m_lastGroup);
|
||||||
|
|
||||||
if (m_lastGroup == m_db->rootGroup()) {
|
if (m_lastGroup == m_db->rootGroup()) {
|
||||||
|
m_searchUi->optionsWidget->hide();
|
||||||
m_searchUi->searchCurrentRadioButton->hide();
|
m_searchUi->searchCurrentRadioButton->hide();
|
||||||
m_searchUi->searchRootRadioButton->hide();
|
m_searchUi->searchRootRadioButton->hide();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
m_searchUi->optionsWidget->show();
|
||||||
m_searchUi->searchCurrentRadioButton->show();
|
m_searchUi->searchCurrentRadioButton->show();
|
||||||
m_searchUi->searchRootRadioButton->show();
|
m_searchUi->searchRootRadioButton->show();
|
||||||
m_searchUi->searchCurrentRadioButton->setText(tr("Current group")
|
m_searchUi->searchCurrentRadioButton->setText(tr("Current group")
|
||||||
|
@ -10,7 +10,13 @@
|
|||||||
<height>87</height>
|
<height>87</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QFormLayout" name="formLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<property name="margin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="LineEdit" name="searchEdit"/>
|
||||||
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
@ -32,36 +38,51 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="LineEdit" name="searchEdit"/>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout2">
|
<widget class="QWidget" name="optionsWidget" native="true">
|
||||||
<item>
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<widget class="QCheckBox" name="caseSensitiveCheckBox">
|
<property name="margin">
|
||||||
<property name="text">
|
<number>0</number>
|
||||||
<string>Case sensitive</string>
|
</property>
|
||||||
</property>
|
<item>
|
||||||
</widget>
|
<widget class="QCheckBox" name="caseSensitiveCheckBox">
|
||||||
</item>
|
<property name="text">
|
||||||
<item>
|
<string>Case sensitive</string>
|
||||||
<widget class="QRadioButton" name="searchCurrentRadioButton">
|
</property>
|
||||||
<property name="text">
|
</widget>
|
||||||
<string>Current group</string>
|
</item>
|
||||||
</property>
|
<item>
|
||||||
<property name="checked">
|
<widget class="QRadioButton" name="searchCurrentRadioButton">
|
||||||
<bool>true</bool>
|
<property name="text">
|
||||||
</property>
|
<string>Current group</string>
|
||||||
</widget>
|
</property>
|
||||||
</item>
|
<property name="checked">
|
||||||
<item>
|
<bool>true</bool>
|
||||||
<widget class="QRadioButton" name="searchRootRadioButton">
|
</property>
|
||||||
<property name="text">
|
</widget>
|
||||||
<string>Root group</string>
|
</item>
|
||||||
</property>
|
<item>
|
||||||
</widget>
|
<widget class="QRadioButton" name="searchRootRadioButton">
|
||||||
</item>
|
<property name="text">
|
||||||
</layout>
|
<string>Root group</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>255</width>
|
||||||
|
<height>1</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
Reference in New Issue
Block a user