misc fts fixes

* config fts.enablePosition is not updated
 * update preferences layout
This commit is contained in:
shenleban tongying 2023-07-01 23:41:05 -04:00
parent 7696f47a44
commit ec566c4a3b
No known key found for this signature in database
2 changed files with 13 additions and 12 deletions

View file

@ -465,8 +465,9 @@ Config::Preferences Preferences::getPreferences()
p.addonStyle = ui.addonStyles->getCurrentStyle(); p.addonStyle = ui.addonStyles->getCurrentStyle();
p.fts.enabled = ui.ftsGroupBox->isChecked(); p.fts.enabled = ui.ftsGroupBox->isChecked();
p.fts.maxDictionarySize = ui.maxDictionarySize->value(); p.fts.maxDictionarySize = ui.maxDictionarySize->value();
p.fts.enablePosition = ui.enablePosition->isChecked();
buildDisabledTypes( p.fts.disabledTypes, ui.allowAard->isChecked(), "AARD" ); buildDisabledTypes( p.fts.disabledTypes, ui.allowAard->isChecked(), "AARD" );
buildDisabledTypes( p.fts.disabledTypes, ui.allowBGL->isChecked(), "BGL" ); buildDisabledTypes( p.fts.disabledTypes, ui.allowBGL->isChecked(), "BGL" );

View file

@ -1296,16 +1296,6 @@ download page.</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="0">
<widget class="QCheckBox" name="enablePosition">
<property name="toolTip">
<string>Positional information is required to use Xapian's phrase searching and NEAR operator, but the database size will be much bigger. Applies only to new incoming dictionaries.</string>
</property>
<property name="text">
<string>Enable index with positional information</string>
</property>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QCheckBox" name="allowAard"> <widget class="QCheckBox" name="allowAard">
<property name="text"> <property name="text">
@ -1362,7 +1352,7 @@ download page.</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0"> <item row="6" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_14"> <layout class="QHBoxLayout" name="horizontalLayout_14">
<item> <item>
<widget class="QLabel" name="label_14"> <widget class="QLabel" name="label_14">
@ -1403,6 +1393,16 @@ download page.</string>
</item> </item>
</layout> </layout>
</item> </item>
<item row="7" column="0" colspan="2">
<widget class="QCheckBox" name="enablePosition">
<property name="toolTip">
<string>Positional information is required to use Xapian's phrase searching and NEAR operator, but the database size will be much bigger. Applies only to new incoming dictionaries.</string>
</property>
<property name="text">
<string>Enable index with positional information</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>