MCPcopy Create free account
hub / github.com/ckaiser/Lightscreen / selectedArea

Method selectedArea

tools/screenshot.cpp:479–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479void Screenshot::selectedArea()
480{
481 grabDesktop();
482
483 if (mPixmap.isNull()) {
484 return;
485 }
486
487 AreaDialog selector(this);
488 int result = selector.exec();
489
490 if (result == QDialog::Accepted) {
491 mPixmap = mPixmap.copy(selector.resultRect());
492 } else {
493 mPixmap = QPixmap();
494 }
495}
496
497void Screenshot::selectedWindow()
498{

Callers

nothing calls this directly

Calls 3

QPixmapClass · 0.85
copyMethod · 0.80
resultRectMethod · 0.80

Tested by

no test coverage detected