X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Fdecoder_binary%2Fview.cpp;fp=pv%2Fviews%2Fdecoder_binary%2Fview.cpp;h=1e40bd1b686c315ce3f5a196b96c351b027c4cf7;hp=05d5ed4612c9ba7b5897ca67076b04f9f42d4ca8;hb=ffad6cd6856a0e0de36cad164d9d09e06c0ec52a;hpb=153225bc3339c2ee9a861a32cba2a15f2ddddd1f diff --git a/pv/views/decoder_binary/view.cpp b/pv/views/decoder_binary/view.cpp index 05d5ed46..1e40bd1b 100644 --- a/pv/views/decoder_binary/view.cpp +++ b/pv/views/decoder_binary/view.cpp @@ -327,10 +327,18 @@ void View::save_data_as_hex_dump(bool with_offset, bool with_ascii) const while (offset < selection.second) { size_t end = std::min((uint64_t)(selection.second), offset + n); offset = hex_view_->create_hex_line(offset, end, &s, with_offset, with_ascii); +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) + out_stream << s << Qt::endl; +#else out_stream << s << endl; +#endif } +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) + out_stream << Qt::endl; +#else out_stream << endl; +#endif if (out_stream.status() != QTextStream::Ok) { QMessageBox msg(parent_);