[LyX/master] Frame takes less space than GroupBox
Juergen Spitzmueller
spitz at lyx.org
Sun Feb 14 17:10:29 UTC 2021
commit 28239bf99660c54a96db550b4e6a805d105df565
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Sun Feb 14 18:12:38 2021 +0100
Frame takes less space than GroupBox
---
src/frontends/qt/GuiSearch.cpp | 2 +-
src/frontends/qt/ui/SearchUi.ui | 25 ++++++++++++++++++++-----
2 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/src/frontends/qt/GuiSearch.cpp b/src/frontends/qt/GuiSearch.cpp
index 7369e8c..2c298df 100644
--- a/src/frontends/qt/GuiSearch.cpp
+++ b/src/frontends/qt/GuiSearch.cpp
@@ -126,7 +126,7 @@ void GuiSearchWidget::minimizeClicked(bool const toggle)
replacePB->setHidden(minimized_);
replacePrevPB->setHidden(minimized_);
replaceallPB->setHidden(minimized_);
- CBGroupBox->setHidden(minimized_);
+ CBFrame->setHidden(minimized_);
if (minimized_) {
minimizePB->setText(qt_("Ex&pand"));
minimizePB->setToolTip("Show replace and option widgets");
diff --git a/src/frontends/qt/ui/SearchUi.ui b/src/frontends/qt/ui/SearchUi.ui
index 8637da8..c7b6a1f 100644
--- a/src/frontends/qt/ui/SearchUi.ui
+++ b/src/frontends/qt/ui/SearchUi.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>706</width>
- <height>127</height>
+ <height>149</height>
</rect>
</property>
<property name="sizePolicy">
@@ -194,9 +194,27 @@
</item>
</layout>
</item>
+ <item row="2" column="0">
+ <layout class="QVBoxLayout" name="verticalLayout"/>
+ </item>
<item row="1" column="0">
- <widget class="QGroupBox" name="CBGroupBox">
+ <widget class="QFrame" name="CBFrame">
<layout class="QHBoxLayout" name="CBLayout">
+ <property name="spacing">
+ <number>0</number>
+ </property>
+ <property name="leftMargin">
+ <number>0</number>
+ </property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
@@ -231,9 +249,6 @@
</layout>
</widget>
</item>
- <item row="2" column="0">
- <layout class="QVBoxLayout" name="verticalLayout"/>
- </item>
</layout>
</widget>
<includes>
More information about the lyx-cvs
mailing list