return viewport()->cursor().shape();
}
+
void GuiWorkArea::setCursorShape(Qt::CursorShape shape)
{
viewport()->setCursor(shape);
}
+
+void GuiWorkArea::updateCursorShape()
+{
+ setCursorShape(buffer_view_->clickableInset()
+ ? Qt::PointingHandCursor : Qt::IBeamCursor);
+}
+
+
void GuiWorkArea::setGuiView(GuiView & gv)
{
lyx_view_ = &gv;
buffer_view_->coordCache().dump();
setReadOnly(buffer_view_->buffer().isReadonly());
+
+ updateCursorShape();
}
startBlinkingCursor();
}
- setCursorShape(buffer_view_->clickableInset()
- ? Qt::PointingHandCursor : Qt::IBeamCursor);
+ updateCursorShape();
}
Qt::CursorShape cursorShape() const;
void setCursorShape(Qt::CursorShape shape);
+ /// Change the cursor when the mouse hovers over a clickable inset
+ void updateCursorShape();
/// Return the GuiView this workArea belongs to
GuiView const & view() const { return *lyx_view_; }