}
+#if QT_VERSION >= 0x040400
void GuiView::setCursorShapes(Qt::CursorShape shape)
{
QVector<GuiWorkArea*> areas = d.guiWorkAreas();
void GuiView::processingThreadFinished()
{
-#if (QT_VERSION >= 0x040400)
QFutureWatcher<docstring> const * watcher =
static_cast<QFutureWatcher<docstring> const *>(sender());
message(watcher->result());
d.processing_cursor_timer_.stop();
restoreCursorShapes();
d.indicates_processing_ = false;
-#endif
+}
+
+#else
+
+void GuiView::setCursorShapes(Qt::CursorShape)
+{
+}
+
+
+void GuiView::restoreCursorShapes()
+{
}
+void GuiView::saveCursorShapes()
+{
+}
+
+
+void GuiView::indicateProcessing()
+{
+}
+
+
+void GuiView::processingThreadStarted()
+{
+}
+
+
+void GuiView::processingThreadFinished()
+{
+}
+#endif
+
+
void GuiView::saveLayout() const
{
QSettings settings;
if (!used_buffer)
return false;
- gv_->processingThreadStarted();
string format = argument;
if (format.empty())
format = used_buffer->getDefaultOutputFormat();
#if EXPORT_in_THREAD && (QT_VERSION >= 0x040400)
+ gv_->processingThreadStarted();
if (!msg.empty()) {
progress_->clearMessages();
gv_->message(msg);
!used_buffer->params().getIncludedChildren().empty();
return (used_buffer->*syncFunc)(format, true, update_unincluded);
} else if (previewFunc) {
- // TODO includeall must be false or we get a 100% busy thread, a bug?
return (used_buffer->*previewFunc)(format, false);
}
(void) asyncFunc;