mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Merge pull request #1183 from xiaoyifang/fix/popup-min-height
fix: suggestion list set a minimum height
This commit is contained in:
commit
471f20f140
|
@ -49,6 +49,7 @@ TranslateBox::TranslateBox( QWidget * parent ):
|
|||
translate_line->setCompleter( completer );
|
||||
completer->setCompletionMode( QCompleter::UnfilteredPopupCompletion );
|
||||
completer->setMaxVisibleItems( 16 );
|
||||
completer->popup()->setMinimumHeight( 256 );
|
||||
|
||||
connect( translate_line, &QLineEdit::returnPressed, [ this ]() {
|
||||
emit returnPressed();
|
||||
|
|
Loading…
Reference in a new issue