mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
fix: handle qcompleter signal
This commit is contained in:
parent
64b1863208
commit
c21e57664c
|
@ -87,7 +87,8 @@ void TranslateBox::setModel( QStringList & _words )
|
|||
connect( completer,
|
||||
QOverload< const QString & >::of( &QCompleter::activated ),
|
||||
translate_line,
|
||||
[ & ]( const QString & ) {
|
||||
[ & ]( const QString & text) {
|
||||
translate_line->setText(text);
|
||||
emit translate_line->returnPressed();
|
||||
} );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue