MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / hideMessage

Method hideMessage

src/gui/UBMessageWindow.cpp:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void 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}

Callers 1

showMessageMethod · 0.45

Calls 1

hideFunction · 0.50

Tested by

no test coverage detected