]> sigrok.org Git - pulseview.git/commit
Add a mechanism to make ViewItem classes immovable.
authorTilman Sauerbeck <redacted>
Sat, 7 Nov 2015 14:31:08 +0000 (15:31 +0100)
committerTilman Sauerbeck <redacted>
Sat, 7 Nov 2015 14:52:15 +0000 (15:52 +0100)
commita009d21992db132679e27030736ed614522245ea
tree9b68d913c5acc989680f2323bc8d6dd1f31a437a
parent3e8a7cc6af5558a249c114b1609ececa2a381774
Add a mechanism to make ViewItem classes immovable.

This adds a new method ViewItem::is_draggable(), which returns
true iff the view item is supposed to be draggable/movable.

Also, ViewItem::drag() is turned into a nop if the item is
not draggable.
pv/view/viewitem.cpp
pv/view/viewitem.hpp