X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Fdecoder_output%2FQHexView.hpp;h=e7c255670b7b793e014ac076c735ca34866261a6;hb=6961eab0d4bf976cee015afacfa7c25795e574b9;hp=74b9da566fe9e7dd78eb99755109f36b72ff6659;hpb=a61abf09a38e9b2e0bb7bd1753903069e0cad150;p=pulseview.git diff --git a/pv/views/decoder_output/QHexView.hpp b/pv/views/decoder_output/QHexView.hpp index 74b9da56..e7c25567 100644 --- a/pv/views/decoder_output/QHexView.hpp +++ b/pv/views/decoder_output/QHexView.hpp @@ -56,6 +56,7 @@ public: void clear(); void showFromOffset(size_t offset); + virtual QSizePolicy sizePolicy() const; protected: void initialize_byte_iterator(size_t offset); @@ -84,8 +85,8 @@ private: size_t charWidth_, charHeight_; size_t selectBegin_, selectEnd_, selectInit_, cursorPos_; - size_t current_chunk_id_, current_chunk_offset_; - const DecodeBinaryDataChunk* current_chunk_; + size_t current_chunk_id_, current_chunk_offset_, current_offset_; + DecodeBinaryDataChunk current_chunk_; // Cache locally so that we're not messed up when the vector is re-allocating its data vector chunk_colors_; };