hiro/qt/action/menu-item.hpp
raw| 1 | #if defined(Hiro_MenuItem) |
| 2 | |
| 3 | namespace hiro { |
| 4 | |
| 5 | struct pMenuItem : pAction { |
| 6 | Declare(MenuItem, Action) |
| 7 | |
| 8 | auto setIcon(const image& icon, bool force = false) -> void; |
| 9 | auto setText(const string& text) -> void; |
| 10 | |
| 11 | auto _setState() -> void override; |
| 12 | |
| 13 | QtMenuItem* qtMenuItem = nullptr; |
| 14 | }; |
| 15 | |
| 16 | } |
| 17 | |
| 18 | #endif |