- if (draw_progress != -1) {
- qp.setPen(Qt::GlobalColor::gray);
- qp.drawLine(0, draw_progress, pixmap.width() - 1, draw_progress);
- }
- if (draw_zoom_rect) {
- qp.setPen(Qt::GlobalColor::gray);
- qp.drawRect(
- get_rect(
- pixmap.size(),
- zoom_rect_center,
- zoom_factor
- )
- );
- }
- if (draw_progress != -1 || draw_zoom_rect)
+ if (draw_progress != -1) {
+ qp.setPen(Qt::GlobalColor::gray);
+ qp.drawLine(0, draw_progress, pixmap.width() - 1, draw_progress);
+ }
+ if (draw_zoom_rect) {
+ qp.setPen(Qt::GlobalColor::gray);
+ qp.drawRect(
+ get_rect(
+ pixmap.size(),
+ zoom_rect_center,
+ zoom_factor
+ )
+ );
+ }