| 119 | } |
| 120 | |
| 121 | void UBMessageWindow::hideMessage() |
| 122 | { |
| 123 | mFadingStep = 0; |
| 124 | hide(); |
| 125 | // on Linux, calling sendPostedEvents() with no filters creates an issue where "longpress events" slots are applied before it should (e.g, add a page between page 1 |
| 126 | // and 2 in a 500+ pages document => the newPage dialog appears like if you did a long click). |
| 127 | // Moreover, on OSX, calling sendPostedEvents() doesn't solve the initial issue, where the messages are not displayed |
| 128 | // todo : find a better solution for Mac, maybe by testing something like the following line (+ X11ExcludeTimers or #ifdef Q_OS_OSX) |
| 129 | //QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents | QEventLoop::X11ExcludeTimers); |
| 130 | } |