mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
also build with older Qt versions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32612 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1e7c296557
commit
eb3fcca0e7
@ -107,6 +107,7 @@
|
||||
|
||||
#define EXPORT_in_THREAD 1
|
||||
|
||||
|
||||
// QtConcurrent was introduced in Qt 4.4
|
||||
#if (QT_VERSION >= 0x040400)
|
||||
#include <QFuture>
|
||||
@ -270,6 +271,7 @@ struct GuiView::GuiViewPrivate
|
||||
return tabWorkArea(0);
|
||||
}
|
||||
|
||||
#if (QT_VERSION >= 0x040400)
|
||||
void setPreviewFuture(QFuture<docstring> 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<docstring> autosave_watcher_;
|
||||
QFutureWatcher<docstring> preview_watcher_;
|
||||
#else
|
||||
struct DummyWatcher { bool isRunning(){return false;} };
|
||||
DummyWatcher preview_watcher_;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user