QThreadPool was introduced in Qt 4.4

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34221 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-04-19 19:55:15 +00:00
parent 0b92e538d9
commit 30792f994e

View File

@ -104,7 +104,7 @@
#include <QTextCodec>
#include <QTimer>
#include <QTranslator>
#if QT_VERSION >= 0x040300
#if QT_VERSION >= 0x040400
#include <QThreadPool>
#endif
#include <QWidget>
@ -824,7 +824,7 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
this, SLOT(handleRegularEvents()));
d->general_timer_.start();
#if QT_VERSION >= 0x040300
#if QT_VERSION >= 0x040400
// 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.