| 515 | } |
| 516 | |
| 517 | void |
| 518 | NodeCreationDialog::changeEvent(QEvent* e) |
| 519 | { |
| 520 | if (e->type() == QEvent::ActivationChange) { |
| 521 | if ( !isActiveWindow() && ( qApp->activeWindow() != _imp->textEdit->getView() ) ) { |
| 522 | finish(false); |
| 523 | |
| 524 | return; |
| 525 | } |
| 526 | } |
| 527 | QDialog::changeEvent(e); |
| 528 | } |
| 529 | |
| 530 | void |
| 531 | NodeCreationDialog::finish(bool accepted) |