| 477 | } |
| 478 | |
| 479 | void 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 | |
| 497 | void Screenshot::selectedWindow() |
| 498 | { |
nothing calls this directly
no test coverage detected