Fix FindAndReplace dialog for Qt < 4.4.0.

For reasons unknown to me, this also fixes the scroll bar issue!


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31463 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-09-24 14:28:14 +00:00
parent fca8ba713f
commit 3f371011f9

View File

@ -47,6 +47,9 @@ FindAndReplaceWidget::FindAndReplaceWidget(GuiView & view)
: view_(view) : view_(view)
{ {
setupUi(this); setupUi(this);
#if QT_VERSION < 0x040400
scrollArea->setWidget(scrollAreaWidgetContents);
#endif
find_work_area_->setGuiView(view_); find_work_area_->setGuiView(view_);
find_work_area_->init(); find_work_area_->init();
setFocusProxy(find_work_area_); setFocusProxy(find_work_area_);