improved new popup menu code

example: you can now modify the menus as before via:
> this->WarnMenu->addAction(this->ui->actionAbort);
> this->ui->actionWarn->setMenu(this->WarnMenu);