mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
opt: remove unused option
This commit is contained in:
parent
dcf4ff3dea
commit
3a0311ad7d
|
@ -1098,10 +1098,6 @@ Class load()
|
|||
if ( !fts.namedItem( "enabled" ).isNull() )
|
||||
c.preferences.fts.enabled = ( fts.namedItem( "enabled" ).toElement().text() == "1" );
|
||||
|
||||
if ( !fts.namedItem( "enablePosition" ).isNull() ) {
|
||||
c.preferences.fts.enablePosition = ( fts.namedItem( "enablePosition" ).toElement().text() == "1" );
|
||||
}
|
||||
|
||||
if ( !fts.namedItem( "maxDictionarySize" ).isNull() )
|
||||
c.preferences.fts.maxDictionarySize = fts.namedItem( "maxDictionarySize" ).toElement().text().toUInt();
|
||||
|
||||
|
@ -2088,10 +2084,6 @@ void save( Class const & c )
|
|||
opt.appendChild( dd.createTextNode( c.preferences.fts.enabled ? "1" : "0" ) );
|
||||
hd.appendChild( opt );
|
||||
|
||||
opt = dd.createElement( "enablePosition" );
|
||||
opt.appendChild( dd.createTextNode( c.preferences.fts.enablePosition ? "1" : "0" ) );
|
||||
hd.appendChild( opt );
|
||||
|
||||
opt = dd.createElement( "maxDictionarySize" );
|
||||
opt.appendChild( dd.createTextNode( QString::number( c.preferences.fts.maxDictionarySize ) ) );
|
||||
hd.appendChild( opt );
|
||||
|
|
|
@ -196,8 +196,6 @@ struct FullTextSearch
|
|||
int searchMode;
|
||||
bool enabled;
|
||||
|
||||
bool enablePosition = false;
|
||||
|
||||
quint32 maxDictionarySize;
|
||||
quint32 parallelThreads = QThread::idealThreadCount() / 3 + 1;
|
||||
QByteArray dialogGeometry;
|
||||
|
|
|
@ -351,8 +351,6 @@ Preferences::Preferences( QWidget * parent, Config::Class & cfg_ ):
|
|||
ui.allowEpwing->setChecked( !p.fts.disabledTypes.contains( "EPWING", Qt::CaseInsensitive ) );
|
||||
ui.allowGls->setChecked( !p.fts.disabledTypes.contains( "GLS", Qt::CaseInsensitive ) );
|
||||
|
||||
ui.enablePosition->setChecked( p.fts.enablePosition );
|
||||
ui.enablePosition->hide();
|
||||
#ifndef MAKE_ZIM_SUPPORT
|
||||
ui.allowZim->hide();
|
||||
#endif
|
||||
|
@ -495,7 +493,6 @@ Config::Preferences Preferences::getPreferences()
|
|||
p.fts.enabled = ui.ftsGroupBox->isChecked();
|
||||
p.fts.maxDictionarySize = ui.maxDictionarySize->value();
|
||||
p.fts.parallelThreads = ui.parallelThreads->value();
|
||||
p.fts.enablePosition = ui.enablePosition->isChecked();
|
||||
|
||||
buildDisabledTypes( p.fts.disabledTypes, ui.allowAard->isChecked(), "AARD" );
|
||||
buildDisabledTypes( p.fts.disabledTypes, ui.allowBGL->isChecked(), "BGL" );
|
||||
|
|
|
@ -1377,16 +1377,6 @@ download page.</string>
|
|||
</property>
|
||||
</widget>
|
||||
</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>
|
||||
<item row="1" column="0">
|
||||
<widget class="QCheckBox" name="allowBGL">
|
||||
<property name="text">
|
||||
|
|
Loading…
Reference in a new issue