From: Enrico Forestieri Date: Thu, 24 Sep 2009 14:28:14 +0000 (+0000) Subject: Fix FindAndReplace dialog for Qt < 4.4.0. X-Git-Tag: 2.0.0~5446 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3f371011f95c0eb8053f1f922735c8e595123b3f;p=features.git 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 --- diff --git a/src/frontends/qt4/FindAndReplace.cpp b/src/frontends/qt4/FindAndReplace.cpp index 64d38f60c3..6fb9605b9b 100644 --- a/src/frontends/qt4/FindAndReplace.cpp +++ b/src/frontends/qt4/FindAndReplace.cpp @@ -47,6 +47,9 @@ FindAndReplaceWidget::FindAndReplaceWidget(GuiView & view) : view_(view) { setupUi(this); +#if QT_VERSION < 0x040400 + scrollArea->setWidget(scrollAreaWidgetContents); +#endif find_work_area_->setGuiView(view_); find_work_area_->init(); setFocusProxy(find_work_area_);