| 93 | } |
| 94 | |
| 95 | bool ElaMenu::isHasChildMenu() const |
| 96 | { |
| 97 | QList<QAction*> actionList = this->actions(); |
| 98 | for (auto action: actionList) |
| 99 | { |
| 100 | if (action->isSeparator()) |
| 101 | { |
| 102 | continue; |
| 103 | } |
| 104 | if (action->menu()) |
| 105 | { |
| 106 | return true; |
| 107 | } |
| 108 | } |
| 109 | return false; |
| 110 | } |
| 111 | |
| 112 | bool ElaMenu::isHasIcon() const |
| 113 | { |