Automatic horiz/vert switch also for Advanced Tab (completing e3677975).

This commit is contained in:
Tommaso Cucinotta 2013-05-05 15:09:53 +01:00
parent e36779755e
commit bd9e8fecd3
2 changed files with 81 additions and 53 deletions

View File

@ -68,9 +68,11 @@ FindAndReplaceWidget::FindAndReplaceWidget(GuiView & view)
void FindAndReplaceWidget::dockLocationChanged(Qt::DockWidgetArea area) void FindAndReplaceWidget::dockLocationChanged(Qt::DockWidgetArea area)
{ {
if (area == Qt::RightDockWidgetArea || area == Qt::LeftDockWidgetArea) { if (area == Qt::RightDockWidgetArea || area == Qt::LeftDockWidgetArea) {
dynamicLayout_->setDirection(QBoxLayout::TopToBottom); dynamicLayoutBasic_->setDirection(QBoxLayout::TopToBottom);
dynamicLayoutAdvanced_->setDirection(QBoxLayout::TopToBottom);
} else { } else {
dynamicLayout_->setDirection(QBoxLayout::LeftToRight); dynamicLayoutBasic_->setDirection(QBoxLayout::LeftToRight);
dynamicLayoutAdvanced_->setDirection(QBoxLayout::LeftToRight);
} }
} }

View File

@ -20,13 +20,13 @@
<string>TabWidget</string> <string>TabWidget</string>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>1</number>
</property> </property>
<widget class="QWidget" name="basicTab"> <widget class="QWidget" name="basicTab">
<attribute name="title"> <attribute name="title">
<string>Sear&amp;ch</string> <string>Sear&amp;ch</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="dynamicLayout_"> <layout class="QVBoxLayout" name="dynamicLayoutBasic_">
<item> <item>
<layout class="QVBoxLayout" name="findLayout"> <layout class="QVBoxLayout" name="findLayout">
<item> <item>
@ -184,12 +184,18 @@
<attribute name="title"> <attribute name="title">
<string>S&amp;ettings</string> <string>S&amp;ettings</string>
</attribute> </attribute>
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QVBoxLayout" name="dynamicLayoutAdvanced_">
<item row="0" column="0" colspan="2"> <item>
<widget class="QGroupBox" name="groupBox_2"> <widget class="QGroupBox" name="groupBox_2">
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip"> <property name="toolTip">
<string>The scope to which the search horizon is restricted</string> <string>The scope to which the search horizon is restricted</string>
</property> </property>
@ -258,57 +264,77 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="verticalSpacer">
<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>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item>
<widget class="QCheckBox" name="ignoreFormatCB"> <layout class="QGridLayout" name="gridLayout_2">
<property name="enabled"> <property name="sizeConstraint">
<bool>true</bool> <enum>QLayout::SetMinimumSize</enum>
</property> </property>
<property name="toolTip"> <item row="1" column="0">
<string>If unchecked, the search will be limited to occurrences of the selected text and paragraph style</string> <widget class="QCheckBox" name="ignoreFormatCB">
</property> <property name="enabled">
<property name="text"> <bool>true</bool>
<string>Ignore &amp;format</string> </property>
</property> <property name="toolTip">
<property name="checked"> <string>If unchecked, the search will be limited to occurrences of the selected text and paragraph style</string>
<bool>true</bool> </property>
</property> <property name="text">
</widget> <string>Ignore &amp;format</string>
</item> </property>
<item row="2" column="0" colspan="2"> <property name="checked">
<widget class="QCheckBox" name="keepCaseCB"> <bool>true</bool>
<property name="toolTip"> </property>
<string>Keep the case of the replacement's first letter as in each matching text first letter</string> </widget>
</property> </item>
<property name="text"> <item row="2" column="0">
<string>&amp;Preserve first case on replace</string> <widget class="QCheckBox" name="keepCaseCB">
</property> <property name="toolTip">
</widget> <string>Keep the case of the replacement's first letter as in each matching text first letter</string>
</item> </property>
<item row="3" column="0"> <property name="text">
<widget class="QCheckBox" name="expandMacrosCB"> <string>&amp;Preserve first case on replace</string>
<property name="enabled"> </property>
<bool>false</bool> </widget>
</property> </item>
<property name="text"> <item row="3" column="0">
<string>&amp;Expand macros</string> <widget class="QCheckBox" name="expandMacrosCB">
</property> <property name="enabled">
</widget> <bool>false</bool>
</item> </property>
<item row="4" column="1"> <property name="text">
<spacer name="verticalSpacer"> <string>&amp;Expand macros</string>
<property name="orientation"> </property>
<enum>Qt::Vertical</enum> </widget>
</property> </item>
<property name="sizeHint" stdset="0"> <item row="4" column="0">
<size> <spacer name="verticalSpacer_2">
<width>105</width> <property name="orientation">
<height>2</height> <enum>Qt::Vertical</enum>
</size> </property>
</property> <property name="sizeHint" stdset="0">
</spacer> <size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>