Fix for Qt 4.2 (patch mostly from JMarc).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33848 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-03-24 08:50:06 +00:00
parent 45b2a000e3
commit d95b35dad8
3 changed files with 6 additions and 5 deletions

View File

@ -53,9 +53,6 @@ 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();
find_work_area_->setFrameStyle(QFrame::StyledPanel);

View File

@ -104,7 +104,9 @@
#include <QTextCodec>
#include <QTimer>
#include <QTranslator>
#if QT_VERSION >= 0x040300
#include <QThreadPool>
#endif
#include <QWidget>
#ifdef Q_WS_X11
@ -822,10 +824,12 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
this, SLOT(handleRegularEvents()));
d->general_timer_.start();
#if QT_VERSION >= 0x040300
// maxThreadCount() defaults in general to 2 on single or dual-processor.
// This is clearly not enough in a time where we use threads for
// document preview and/or export. 20 should be OK.
QThreadPool::globalInstance()->setMaxThreadCount(20);
#endif
}

View File

@ -15,10 +15,10 @@
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_4">
<property name="leftMargin">
<property name="margin">
<number>0</number>
</property>
<property name="rightMargin">
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0">