Gui: add WaitCursor API

This commit is contained in:
Furgo
2025-06-29 08:53:08 +02:00
parent 37cd1a657a
commit c238be2857
4 changed files with 55 additions and 0 deletions

View File

@@ -189,3 +189,16 @@ void WaitCursor::setIgnoreEvents(FilterEventsFlags flags)
{
WaitCursorP::getInstance()->setIgnoreEvents(flags);
}
void WaitCursor::suspend()
{
// Calling setBusy(false) will restore the cursor and remove the event filter.
WaitCursorP::getInstance()->setBusy(false);
}
void WaitCursor::resume()
{
// Calling setBusy(true) will set the wait cursor and reinstall the event filter.
// The WaitCursorP's internal state `isOn` correctly handles this call.
WaitCursorP::getInstance()->setBusy(true);
}