void ByteViewText::setFieldHighlight(int start, int end, guint32, int) { f_bound_ = QPair<guint, guint>(qMax(0, start), qMax(0, end)); f_bound_save_ = f_bound_; scrollToByte(start); viewport()->update(); }
void ByteViewText::markField(int start, int length, bool scroll_to) { field_start_ = start; field_len_ = length; if (scroll_to) { scrollToByte(start); } viewport()->update(); }
void ByteViewText::markField(int start, int length, bool scroll_to) { field_start_ = start; field_len_ = length; // This might be called as a result of (de)selecting a proto tree // item, so take us out of marked mode. marked_byte_offset_ = -1; if (scroll_to) { scrollToByte(start); } viewport()->update(); }