History

Correctly Hide/Show cursor

Atlante45 committed 11 years ago

Commit dc4c9cd1 parent 43dc35d1 file · +8 −2Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+8−2
@@ -2311,9 +2311,15 @@ void Application::updateCursor(float deltaTime) { · 2310 unmodified lines
23112311
23122312 void Application::setCursorVisible(bool visible) {
23132313 if (visible) {
2314− _glWidget->unsetCursor();
2314+ if (overrideCursor() != NULL) {
2315+ restoreOverrideCursor();
2316+ }
23152317 } else {
2316− _glWidget->setCursor(Qt::BlankCursor);
2318+ if (overrideCursor() != NULL) {
2319+ changeOverrideCursor(Qt::BlankCursor);
2320+ } else {
2321+ setOverrideCursor(Qt::BlankCursor);
2322+ }
23172323 }
23182324 }
23192325

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t