remove resize event code

this part of changes is from https://github.com/xiaoyifang/goldendict/pull/415#discussion_r1145639728
This commit is contained in:
Xiao YiFang 2023-04-10 21:07:37 +08:00 committed by xiaoyifang
parent bb1e0de74a
commit 6dee7cf1e9

View file

@ -763,17 +763,6 @@ bool ScanPopup::eventFilter( QObject * watched, QEvent * event )
} }
return false; return false;
} }
if ( event->type() == QEvent::Resize )
{
// The UI looks ugly when group combobox is higher than translate line.
// Make the height of the combobox the same as the line edit's height.
// The fonts of these UI items should be kept in sync by applyWordsZoomLevel()
// so that text in the combobox is not clipped.
const QResizeEvent * const resizeEvent = static_cast< const QResizeEvent * >( event );
ui.groupList->setFixedHeight( resizeEvent->size().height() );
return false;
}
} }
if ( mouseIntercepted ) if ( mouseIntercepted )