From: Tilman Sauerbeck Date: Sat, 7 Nov 2015 14:41:58 +0000 (+0100) Subject: When hovering a ViewItem only change the mouse cursor for movable items. X-Git-Tag: pulseview-0.3.0~46 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d75c5d12963b35bd8a8c507f565ec5c57fbdaac6;p=pulseview.git When hovering a ViewItem only change the mouse cursor for movable items. --- diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp index ac494272..3811c1e8 100644 --- a/pv/view/viewport.cpp +++ b/pv/view/viewport.cpp @@ -68,7 +68,7 @@ shared_ptr Viewport::get_mouse_over_item(const QPoint &pt) void Viewport::item_hover(const shared_ptr &item) { - if (item) + if (item && item->is_draggable()) setCursor(dynamic_pointer_cast(item) ? Qt::SizeVerCursor : Qt::SizeHorCursor); else