docstring const title = bformat(_("LyX: %1$s"), title0);
- // For some reason, sometimes Qt uses an hourglass or watch cursor when
+ // For some reason, sometimes Qt uses a hourglass or watch cursor when
// displaying the alert. Hence, we ask for the standard cursor shape.
- // This call has no effect if the cursor has not been overridden.
- qApp->changeOverrideCursor(Qt::ArrowCursor);
+ qApp->setOverrideCursor(Qt::ArrowCursor);
// FIXME replace that with guiApp->currentView()
//LYXERR0("FOCUS: " << qApp->focusWidget());
b3.empty() ? QString::null : toqstr(b3),
default_button, cancel_button);
+ qApp->restoreOverrideCursor();
+
// Qt bug: can return -1 on cancel or WM close, despite the docs.
if (res == -1)
res = cancel_button;
return;
}
+ // Don't use a hourglass cursor while displaying the alert
+ qApp->setOverrideCursor(Qt::ArrowCursor);
+
if (!askshowagain) {
ProgressInterface::instance()->warning(
toqstr(title),
toqstr(message),
toqstr(formatted(message)));
}
+
+ qApp->restoreOverrideCursor();
}
return;
}
+ // Don't use a hourglass cursor while displaying the alert
+ qApp->setOverrideCursor(Qt::ArrowCursor);
+
ProgressInterface::instance()->error(
toqstr(title),
toqstr(formatted(message)));
+
+ qApp->restoreOverrideCursor();
}
return;
}
+ // Don't use a hourglass cursor while displaying the alert
+ qApp->setOverrideCursor(Qt::ArrowCursor);
+
ProgressInterface::instance()->information(
toqstr(title),
toqstr(formatted(message)));
+
+ qApp->restoreOverrideCursor();
}