+
+ // New chunk means also new chunk sample, so check for required changes
+ if (bold_font_was_used)
+ painter.setFont(normal_font);
+ if ((highlighted_sample_ >= current_chunk_sample_) && (highlighted_sample_ < next_chunk_sample_)) {
+ painter.setFont(bold_font);
+ bold_font_was_used = true;
+ }
+ }
+
+ // Restore default paint style
+ painter.setBackground(regular_brush);
+ painter.setBackgroundMode(Qt::TransparentMode);
+ if (!multiple_chunks)
+ painter.setPen(palette().color(QPalette::Text));
+ else
+ painter.setPen(chunk_colors_[chunk_color]);
+
+ // Highlight needed because it's the range visible in main view?
+ if ((current_chunk_sample_ >= visible_range_.first) && (current_chunk_sample_ < visible_range_.second)) {
+ painter.setBackgroundMode(Qt::OpaqueMode);
+ painter.setBackground(visible_range_brush);