| 277 | } |
| 278 | |
| 279 | void NewInstanceDialog::on_iconButton_clicked() |
| 280 | { |
| 281 | importIconNow(); //so the user can switch back |
| 282 | IconPickerDialog dlg(this); |
| 283 | dlg.execWithSelection(InstIconKey); |
| 284 | |
| 285 | if (dlg.result() == QDialog::Accepted) |
| 286 | { |
| 287 | InstIconKey = dlg.selectedIconKey; |
| 288 | ui->iconButton->setIcon(APPLICATION->icons()->getIcon(InstIconKey)); |
| 289 | importIcon = false; |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | void NewInstanceDialog::on_instNameTextBox_textChanged(const QString &arg1) |
| 294 | { |
nothing calls this directly
no test coverage detected