From eb3fcca0e708986e988a03c240409ace2b5eeb56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Tue, 22 Dec 2009 10:42:34 +0000 Subject: [PATCH] also build with older Qt versions git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32612 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 9e51f708ae..862870c7f9 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -107,6 +107,7 @@ #define EXPORT_in_THREAD 1 + // QtConcurrent was introduced in Qt 4.4 #if (QT_VERSION >= 0x040400) #include @@ -270,6 +271,7 @@ struct GuiView::GuiViewPrivate return tabWorkArea(0); } +#if (QT_VERSION >= 0x040400) void setPreviewFuture(QFuture const & f) { if (preview_watcher_.isRunning()) @@ -278,6 +280,7 @@ struct GuiView::GuiViewPrivate connect(&preview_watcher_, SIGNAL(finished()), gv_, SLOT(threadFinished())); } +#endif public: GuiView * gv_; @@ -320,6 +323,9 @@ public: /// QFutureWatcher autosave_watcher_; QFutureWatcher preview_watcher_; +#else + struct DummyWatcher { bool isRunning(){return false;} }; + DummyWatcher preview_watcher_; #endif }; -- 2.39.2