| 23 | } |
| 24 | |
| 25 | void AdvancedTab::setProcessModel(const QString &value) |
| 26 | { |
| 27 | if (value.isEmpty()) |
| 28 | { |
| 29 | ui->comboBoxProcessModel->setCurrentIndex(0); |
| 30 | return; |
| 31 | } |
| 32 | |
| 33 | for (int i = 0; i < ui->comboBoxProcessModel->count(); ++i) |
| 34 | { |
| 35 | if (ui->comboBoxProcessModel->itemData(i).toString().compare(value) == 0) |
| 36 | { |
| 37 | ui->comboBoxProcessModel->setCurrentIndex(i); |
| 38 | return; |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | QString AdvancedTab::getProcessModel() const |
| 44 | { |