mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
remove resize event code
this part of changes is from https://github.com/xiaoyifang/goldendict/pull/415#discussion_r1145639728
This commit is contained in:
parent
bb1e0de74a
commit
6dee7cf1e9
11
scanpopup.cc
11
scanpopup.cc
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue