Commit 66524df7 authored by Alexander Semke's avatar Alexander Semke

Restore the cursor in the worksheet when scrolling with the mouse wheel since we

might be using the pointer cursor set after an URL was hovered.
parent c46e5bcf
......@@ -661,6 +661,13 @@ void WorksheetTextItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
menu->popup(event->screenPos());
}
void WorksheetTextItem::wheelEvent(QGraphicsSceneWheelEvent* event)
{
//restore the cursor when scrolling with the mouse wheel since we
//might be using the pointer cursor set after an URL was hovered
QApplication::restoreOverrideCursor();
QGraphicsItem::wheelEvent(event);
}
void WorksheetTextItem::insertTab()
{
QTextCursor cursor = textCursor();
......
......@@ -148,6 +148,7 @@ class WorksheetTextItem : public QGraphicsTextItem
void dragMoveEvent(QGraphicsSceneDragDropEvent* event) override;
void dropEvent(QGraphicsSceneDragDropEvent* event) override;
bool sceneEvent(QEvent *event) override;
void wheelEvent(QGraphicsSceneWheelEvent*) override;
void paint(QPainter* painter, const QStyleOptionGraphicsItem* o, QWidget* w) override;
private Q_SLOTS:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment