| 1053 | } |
| 1054 | |
| 1055 | bool hasAction(const QList<QAction*>& actions) { |
| 1056 | for (const auto* action : actions) { |
| 1057 | if (!action->isSeparator()) |
| 1058 | return true; |
| 1059 | } |
| 1060 | return false; |
| 1061 | } |
| 1062 | |
| 1063 | /* |
| 1064 | * updates the state of actions, menus and toolbars (enabled or disabled) |