| 89 | } |
| 90 | |
| 91 | void DialogTarget::SetEditmode(const TargetData &targetData) |
| 92 | { |
| 93 | this->setWindowTitle( "Edit target" ); |
| 94 | this->targetId = targetData.TargetId; |
| 95 | |
| 96 | computerInput->setText(targetData.Computer); |
| 97 | domainInput->setText(targetData.Domain); |
| 98 | addressInput->setText(targetData.Address); |
| 99 | aliveCheck->setChecked(targetData.Alive); |
| 100 | osCombo->setCurrentIndex(targetData.Os); |
| 101 | osDescInput->setText(targetData.OsDesc); |
| 102 | tagInput->setText(targetData.Tag); |
| 103 | infoInput->setText(targetData.Info); |
| 104 | } |
| 105 | |
| 106 | bool DialogTarget::IsValid() const { return this->valid; } |
| 107 |
no test coverage detected