Turn off dynamic sorting in headwords dialog (it is a little faster in some cases)

This commit is contained in:
Abs62 2014-03-18 17:44:41 +04:00
parent 6902ca5eda
commit dad314484c

View file

@ -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();