fix: suggestion list scroll to the top

This commit is contained in:
YiFang Xiao 2023-09-14 08:06:42 +08:00
parent 6f06f083da
commit 424642cb3d

View file

@ -101,6 +101,8 @@ void TranslateBox::setModel( QStringList & _words )
model->setStringList( _words ); model->setStringList( _words );
completer->popup()->scrollToTop();
connect( completer, connect( completer,
QOverload< const QString & >::of( &QCompleter::activated ), QOverload< const QString & >::of( &QCompleter::activated ),
translate_line, translate_line,