mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
fix:head lazy load
This commit is contained in:
parent
473c61724f
commit
15702d860b
|
@ -55,6 +55,7 @@ DictHeadwords::DictHeadwords( QWidget *parent, Config::Class & cfg_,
|
||||||
|
|
||||||
connect(model,&HeadwordListModel::finished,this,[this](){
|
connect(model,&HeadwordListModel::finished,this,[this](){
|
||||||
ui.exportButton->setEnabled(true);
|
ui.exportButton->setEnabled(true);
|
||||||
|
ui.progressBar->hide();
|
||||||
});
|
});
|
||||||
proxy = new QSortFilterProxyModel( this );
|
proxy = new QSortFilterProxyModel( this );
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,46 @@
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QListView" name="headersListView"/>
|
<widget class="QListView" name="headersListView"/>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QCheckBox" name="autoApply">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>If checked any filter changes will we immediately applied to headwords list</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Auto apply</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLineEdit" name="filterLine">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Filter string (fixed string, wildcards or regular expression)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="text">
|
||||||
|
<string>Filter:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QPushButton" name="applyButton">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Press this button to apply filter to headwords list</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Apply</string>
|
||||||
|
</property>
|
||||||
|
<property name="autoDefault">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="default">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
|
@ -95,44 +135,17 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="4" column="0">
|
||||||
<widget class="QPushButton" name="applyButton">
|
<widget class="QProgressBar" name="progressBar">
|
||||||
<property name="toolTip">
|
<property name="maximum">
|
||||||
<string>Press this button to apply filter to headwords list</string>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="value">
|
||||||
<string>Apply</string>
|
<number>-1</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="autoDefault">
|
<property name="invertedAppearance">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="default">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QCheckBox" name="autoApply">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>If checked any filter changes will we immediately applied to headwords list</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Auto apply</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="text">
|
|
||||||
<string>Filter:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QLineEdit" name="filterLine">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Filter string (fixed string, wildcards or regular expression)</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
|
Loading…
Reference in a new issue