| 477 | } |
| 478 | |
| 479 | void Area::addAction(QAction* action) |
| 480 | { |
| 481 | Q_D(Area); |
| 482 | |
| 483 | Q_ASSERT(!d->m_actions.contains(action)); |
| 484 | connect(action, &QAction::destroyed, this, &Area::actionDestroyed); |
| 485 | d->m_actions.append(action); |
| 486 | } |
| 487 | |
| 488 | void Area::actionDestroyed(QObject* action) |
| 489 | { |