Skip to content

Commit

Permalink
wip: make sure the final geometry line shows up...
Browse files Browse the repository at this point in the history
  • Loading branch information
toofar committed Dec 28, 2023
1 parent c4f98ad commit fb70e9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/widgets/capture/capturewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,19 +635,19 @@ void CaptureWidget::paintEvent(QPaintEvent* paintEvent)

QRect final_geometry(m_context.selection);
final_geometry.setTopLeft(final_geometry.topLeft() + m_context.widgetOffset);
QString xy = QString("%1x%2+%3+%4\n%5x%6+%7+%8")
QString xy = QString("s:%1x%2+%3+%4\nf:%5x%6+%7+%8\nc:%9x%10+%11+%12")
.arg(static_cast<int>(selection.width() * scale))
.arg(static_cast<int>(selection.height() * scale))
.arg(static_cast<int>(selection.left() * scale))
.arg(static_cast<int>(selection.top() * scale))
.arg(static_cast<int>(m_context.selection.width() * scale))
.arg(static_cast<int>(m_context.selection.height() * scale))
.arg(static_cast<int>(m_context.selection.left() * scale))
.arg(static_cast<int>(m_context.selection.top() * scale))
.arg(static_cast<int>(final_geometry.width() * scale))
.arg(static_cast<int>(final_geometry.height() * scale))
.arg(static_cast<int>(final_geometry.left() * scale))
.arg(static_cast<int>(final_geometry.top() * scale))
.arg(static_cast<int>(m_context.selection.width() * scale))
.arg(static_cast<int>(m_context.selection.height() * scale))
.arg(static_cast<int>(m_context.selection.left() * scale))
.arg(static_cast<int>(m_context.selection.top() * scale))
;

xybox = fm.boundingRect(xy);
Expand Down

0 comments on commit fb70e9c

Please sign in to comment.