Skip to content

Commit

Permalink
wip: add initial selection to debug text
Browse files Browse the repository at this point in the history
  • Loading branch information
toofar committed Dec 28, 2023
1 parent a84f90e commit 2e39707
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/widgets/capture/capturewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,13 @@ void CaptureWidget::initHelpMessage()
req.initialCaptureScreen()->geometry().topLeft().x(),
req.initialCaptureScreen()->geometry().topLeft().y()
);
QRect initialSelection = m_context.request.initialSelection();
keyMap << QPair("Initial Selection", QStringLiteral("%1x%2+%3%4")
.arg(initialSelection.width())
.arg(initialSelection.height())
.arg(initialSelection.x())
.arg(initialSelection.y())
);
keyMap << QPair("Selected Screen Top Left", QStringLiteral("%1x%2").arg(topLeft.x()).arg(topLeft.y()));
for (QScreen* const screen : QGuiApplication::screens()) {
QPoint topLeftScreen = screen->geometry().topLeft();
Expand Down

0 comments on commit 2e39707

Please sign in to comment.