mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Turn off dynamic sorting in headwords dialog (it is a little faster in some cases)
This commit is contained in:
parent
6902ca5eda
commit
dad314484c
|
@ -47,7 +47,7 @@ DictHeadwords::DictHeadwords( QWidget *parent, Config::Class & cfg_,
|
|||
|
||||
proxy->setSortCaseSensitivity( Qt::CaseInsensitive );
|
||||
proxy->setSortLocaleAware( true );
|
||||
proxy->setDynamicSortFilter( true );
|
||||
proxy->setDynamicSortFilter( false );
|
||||
|
||||
ui.headersListView->setModel( proxy );
|
||||
ui.headersListView->setEditTriggers( QAbstractItemView::NoEditTriggers );
|
||||
|
@ -191,6 +191,7 @@ void DictHeadwords::filterChanged()
|
|||
QApplication::setOverrideCursor( Qt::WaitCursor );
|
||||
|
||||
proxy->setFilterRegExp( regExp );
|
||||
proxy->sort( 0 );
|
||||
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
|
|
Loading…
Reference in a new issue