| 201 | |
| 202 | template <class TMenuItem = ui::MenuItem> |
| 203 | TMenuItem* createMenuItem(std::string text, std::string rightText = "") { |
| 204 | TMenuItem* item = new TMenuItem; |
| 205 | item->text = text; |
| 206 | item->rightText = rightText; |
| 207 | return item; |
| 208 | } |
| 209 | |
| 210 | |
| 211 | /** Creates a MenuItem with an action that calls a lambda function. |
no outgoing calls
no test coverage detected