39 BWindow *haikuWindow =
reinterpret_cast<BWindow*
>(
window->winId());
45 BView *
view = haikuWindow->CurrentFocus();
47 view->SetViewCursor(B_CURSOR_SYSTEM_DEFAULT);
52 m_cursors.
insert(shape,
new BCursor(m_cursorIds.
value(shape)));
54 BView *
view = haikuWindow->CurrentFocus();
57 view->SetViewCursor(m_cursors.
value(shape));
The QCursor class provides a mouse cursor with an arbitrary shape.
Qt::CursorShape shape() const
Returns the cursor shape identifier.
void changeCursor(QCursor *windowCursor, QWindow *window) override
This method is called by Qt whenever the cursor graphic should be changed.
bool contains(const Key &key) const noexcept
Returns true if the hash contains an item with the key; otherwise returns false.
T value(const Key &key) const noexcept
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.