MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / GetIndex

Method GetIndex

Plugins/WebBrowser/DlgScreenCapture.cpp:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41int 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}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected