| 146 | |
| 147 | |
| 148 | void UBCustomCaptureWindow::keyPressEvent ( QKeyEvent * event ) |
| 149 | { |
| 150 | if (event->key() == Qt::Key_Escape) |
| 151 | { |
| 152 | mIsSelecting = false; |
| 153 | |
| 154 | if (mSelectionBand) |
| 155 | { |
| 156 | mSelectionBand->hide(); |
| 157 | } |
| 158 | |
| 159 | event->accept(); |
| 160 | reject(); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | |
| 165 | void UBCustomCaptureWindow::showEvent ( QShowEvent * event ) |