| 39 | } |
| 40 | |
| 41 | int CDlgScreenCapture::GetIndex(Type &type, int &id) |
| 42 | { |
| 43 | if(ui->rbScreens->isChecked()) { |
| 44 | type = Type::Screen; |
| 45 | id = ui->cbScreen->currentIndex(); |
| 46 | } |
| 47 | if(ui->rbWindows->isChecked()) { |
| 48 | type = Type::Window; |
| 49 | id = ui->cbWindow->currentIndex(); |
| 50 | } |
| 51 | if(id < 0) |
| 52 | return -1; |
| 53 | return 0; |
| 54 | } |
no outgoing calls
no test coverage detected