]> sigrok.org Git - pulseview.git/commitdiff
When hovering a ViewItem only change the mouse cursor for movable items.
authorTilman Sauerbeck <redacted>
Sat, 7 Nov 2015 14:41:58 +0000 (15:41 +0100)
committerTilman Sauerbeck <redacted>
Sat, 7 Nov 2015 14:52:16 +0000 (15:52 +0100)
pv/view/viewport.cpp

index ac494272de8705522a6c1ca43e073dbd3f9d23d0..3811c1e8a143d70b6dc8f03115d1ead1e529c07e 100644 (file)
@@ -68,7 +68,7 @@ shared_ptr<ViewItem> Viewport::get_mouse_over_item(const QPoint &pt)
 
 void Viewport::item_hover(const shared_ptr<ViewItem> &item)
 {
-       if (item)
+       if (item && item->is_draggable())
                setCursor(dynamic_pointer_cast<RowItem>(item) ?
                        Qt::SizeVerCursor : Qt::SizeHorCursor);
        else