Changeset View
Changeset View
Standalone View
Standalone View
wayland_cursor_theme.cpp
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | |||||
85 | { | 85 | { | ||
86 | if (!m_theme) { | 86 | if (!m_theme) { | ||
87 | return; | 87 | return; | ||
88 | } | 88 | } | ||
89 | wl_cursor_theme_destroy(m_theme); | 89 | wl_cursor_theme_destroy(m_theme); | ||
90 | m_theme = nullptr; | 90 | m_theme = nullptr; | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | wl_cursor_image *WaylandCursorTheme::get(Qt::CursorShape shape) | 93 | wl_cursor_image *WaylandCursorTheme::get(CursorShape shape) | ||
94 | { | 94 | { | ||
95 | return get(Cursor::self()->cursorName(shape)); | 95 | return get(shape.name()); | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | wl_cursor_image *WaylandCursorTheme::get(const QByteArray &name) | 98 | wl_cursor_image *WaylandCursorTheme::get(const QByteArray &name) | ||
99 | { | 99 | { | ||
100 | if (!m_theme) { | 100 | if (!m_theme) { | ||
101 | loadTheme(); | 101 | loadTheme(); | ||
102 | } | 102 | } | ||
103 | if (!m_theme) { | 103 | if (!m_theme) { | ||
Show All 21 Lines |