Simplified LWidgetAction initialization
This commit is contained in:
parent
f4f2474a81
commit
d6fce5c31f
2 changed files with 14 additions and 12 deletions
|
|
@ -20,7 +20,9 @@ public:
|
|||
const QIcon& icon() const;
|
||||
const MenuLocation& menuLocation() const;
|
||||
void setIcon(QIcon icon);
|
||||
void setIcon(const char * icon) { setIcon(QIcon(icon)); }
|
||||
void setMenuLocation(MenuLocation menu_location);
|
||||
void setMenuLocation(const char * menu_location) { setMenuLocation(MenuPath(menu_location)); }
|
||||
void setShortcut(QKeySequence shortcut);
|
||||
void setText(QString text);
|
||||
void setToolTip(QString tooltip);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue