Use the standard mouse pointer shape when displaying an alert dialog

* src/frontends/qt4/Alert_pimpl.C
	(prompt_pimpl): override the cursor shape chosen by Qt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16371 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2006-12-21 20:29:15 +00:00
parent ea2c007320
commit 3aa4567fe8
2 changed files with 9 additions and 3 deletions

View File

@ -72,9 +72,6 @@ TABLE OF CONTENTS
DIALOGS DIALOGS
* when opening an already opened document (or a document with newer backup),
the mouse pointer turns into a clock, although it waits for confirmation
* If you try to view a document as postscript that cannot be typeset because * If you try to view a document as postscript that cannot be typeset because
of LaTeX errors and export to LaTeX afterwards you will get the old error of LaTeX errors and export to LaTeX afterwards you will get the old error
list again, although the export succeded. list again, although the export succeded.
@ -616,3 +613,7 @@ CREDITS:
If I rename the directory (no Umlaut), I can load the file without a problem. If I rename the directory (no Umlaut), I can load the file without a problem.
FIXED (Enrico and Georg 2006-12-21) FIXED (Enrico and Georg 2006-12-21)
* when opening an already opened document (or a document with newer backup),
the mouse pointer turns into a clock, although it waits for confirmation
FIXED (Enrico 2006-12-21)

View File

@ -59,6 +59,11 @@ int prompt_pimpl(docstring const & tit, docstring const & question,
MessageBox mb; MessageBox mb;
// For some reason, sometimes Qt uses an 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);
// FIXME replace that with theApp->gui()->currentView() // FIXME replace that with theApp->gui()->currentView()
int res = mb.information(qApp->focusWidget(), int res = mb.information(qApp->focusWidget(),
toqstr(title), toqstr(title),