mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
misc fts fixes
* config fts.enablePosition is not updated * update preferences layout
This commit is contained in:
parent
7696f47a44
commit
ec566c4a3b
|
@ -467,6 +467,7 @@ Config::Preferences Preferences::getPreferences()
|
|||
|
||||
p.fts.enabled = ui.ftsGroupBox->isChecked();
|
||||
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.allowBGL->isChecked(), "BGL" );
|
||||
|
|
|
@ -1296,16 +1296,6 @@ download page.</string>
|
|||
</property>
|
||||
</widget>
|
||||
</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">
|
||||
<widget class="QCheckBox" name="allowAard">
|
||||
<property name="text">
|
||||
|
@ -1362,7 +1352,7 @@ download page.</string>
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<item row="6" column="0" colspan="2">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_14">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_14">
|
||||
|
@ -1403,6 +1393,16 @@ download page.</string>
|
|||
</item>
|
||||
</layout>
|
||||
</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>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in a new issue