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
2311 2311
2312void Application::setCursorVisible(bool visible) {2312void Application::setCursorVisible(bool visible) {
2313 if (visible) {2313 if (visible) {
2314 _glWidget->unsetCursor();2314 if (overrideCursor() != NULL) {
2315 restoreOverrideCursor();
2316 }
2315 } else {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

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