Add Platform::setMouseCursor()

So we don't depend directly on qGuiApp
This commit is contained in:
Sergio Martins
2022-07-03 20:04:53 +01:00
parent f288d953fc
commit 16565fcd46
4 changed files with 23 additions and 3 deletions

View File

@@ -409,3 +409,13 @@ QString Platform_qt::applicationName() const
{
return qGuiApp->applicationName();
}
void Platform_qt::setMouseCursor(Qt::CursorShape shape)
{
qGuiApp->setOverrideCursor(shape);
}
void Platform_qt::restoreMouseCursor()
{
qGuiApp->restoreOverrideCursor();
}