Changeset View
Changeset View
Standalone View
Standalone View
platform.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 53 | { | |||
---|---|---|---|---|---|
54 | return input()->pointer()->cursorHotSpot(); | 54 | return input()->pointer()->cursorHotSpot(); | ||
55 | } | 55 | } | ||
56 | 56 | | |||
57 | PlatformCursorImage Platform::cursorImage() const | 57 | PlatformCursorImage Platform::cursorImage() const | ||
58 | { | 58 | { | ||
59 | return PlatformCursorImage(softwareCursor(), softwareCursorHotspot()); | 59 | return PlatformCursorImage(softwareCursor(), softwareCursorHotspot()); | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | void Platform::hideCursor() | ||||
63 | { | ||||
64 | m_hideCursorCounter++; | ||||
65 | if (m_hideCursorCounter == 1) { | ||||
66 | doHideCursor(); | ||||
67 | } | ||||
68 | } | ||||
69 | | ||||
70 | void Platform::doHideCursor() | ||||
71 | { | ||||
72 | } | ||||
73 | | ||||
74 | void Platform::showCursor() | ||||
75 | { | ||||
76 | m_hideCursorCounter--; | ||||
77 | if (m_hideCursorCounter == 0) { | ||||
78 | doShowCursor(); | ||||
79 | } | ||||
80 | } | ||||
81 | | ||||
82 | void Platform::doShowCursor() | ||||
83 | { | ||||
84 | } | ||||
85 | | ||||
62 | Screens *Platform::createScreens(QObject *parent) | 86 | Screens *Platform::createScreens(QObject *parent) | ||
63 | { | 87 | { | ||
64 | Q_UNUSED(parent) | 88 | Q_UNUSED(parent) | ||
65 | return nullptr; | 89 | return nullptr; | ||
66 | } | 90 | } | ||
67 | 91 | | |||
68 | OpenGLBackend *Platform::createOpenGLBackend() | 92 | OpenGLBackend *Platform::createOpenGLBackend() | ||
69 | { | 93 | { | ||
▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines |