#define EXPORT_in_THREAD 1
+
// QtConcurrent was introduced in Qt 4.4
#if (QT_VERSION >= 0x040400)
#include <QFuture>
return tabWorkArea(0);
}
+#if (QT_VERSION >= 0x040400)
void setPreviewFuture(QFuture<docstring> const & f)
{
if (preview_watcher_.isRunning())
connect(&preview_watcher_, SIGNAL(finished()), gv_,
SLOT(threadFinished()));
}
+#endif
public:
GuiView * gv_;
///
QFutureWatcher<docstring> autosave_watcher_;
QFutureWatcher<docstring> preview_watcher_;
+#else
+ struct DummyWatcher { bool isRunning(){return false;} };
+ DummyWatcher preview_watcher_;
#endif
};