Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2311,9 +2311,15 @@ void Application::updateCursor(float deltaTime) { · 2310 unmodified lines | ||
| 2311 | 2311 | |
| 2312 | 2312 | void Application::setCursorVisible(bool visible) { |
| 2313 | 2313 | if (visible) { |
| 2314 | − _glWidget->unsetCursor(); | |
| 2314 | + if (overrideCursor() != NULL) { | |
| 2315 | + restoreOverrideCursor(); | |
| 2316 | + } | |
| 2315 | 2317 | } else { |
| 2316 | − _glWidget->setCursor(Qt::BlankCursor); | |
| 2318 | + if (overrideCursor() != NULL) { | |
| 2319 | + changeOverrideCursor(Qt::BlankCursor); | |
| 2320 | + } else { | |
| 2321 | + setOverrideCursor(Qt::BlankCursor); | |
| 2322 | + } | |
| 2317 | 2323 | } |
| 2318 | 2324 | } |
| 2319 | 2325 | |