mirror of https://github.com/bsnes-emu/bsnes.git
26 lines
476 B
C++
Executable File
26 lines
476 B
C++
Executable File
#if defined(Hiro_MenuSeparator)
|
|
|
|
namespace hiro {
|
|
|
|
auto pMenuSeparator::construct() -> void {
|
|
qtMenuSeparator = new QAction(nullptr);
|
|
qtMenuSeparator->setSeparator(true);
|
|
|
|
if(auto parent = _parentMenu()) {
|
|
parent->qtMenu->addAction(qtMenuSeparator);
|
|
}
|
|
|
|
if(auto parent = _parentPopupMenu()) {
|
|
parent->qtPopupMenu->addAction(qtMenuSeparator);
|
|
}
|
|
}
|
|
|
|
auto pMenuSeparator::destruct() -> void {
|
|
delete qtMenuSeparator;
|
|
qtMenuSeparator = nullptr;
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|