2 @SuppressWarnings public class QAction : QObject{
6 nativehandle = QtXnl.createQObject(QType.qtAction, this, 0);
7 if (nativehandle == 0){
13 public bool create(@NotNilptr QWidget parent){
14 nativehandle = QtXnl.createQObject(QType.qtAction,
this, parent.nativehandle);
15 if (nativehandle == 0){
25 public void setMenu(@NotNilptr QMenu menu){
26 QtXnl.widget_set_native_value(nativehandle, Constant.SETMENU, menu.nativehandle);
30 QtXnl.widget_set_bool_value(nativehandle, Constant.SETSEP, b);
34 return QtXnl.widget_get_bool_value(nativehandle, Constant.ISSEP);
38 QtXnl.widget_slot_string(nativehandle, Constant.SETSHRCUT, shortcutKey);
42 QtXnl.widget_set_vint_value(nativehandle, Constant.SETSHRCUT, StandardKey);
46 QtXnl.widget_slot_string(nativehandle, Constant.ACTSETTEXT, text);
50 return (
String)QtXnl.core_getString(nativehandle, Constant.ACTGETTEXT);
54 QtXnl.widget_set_bool_value(nativehandle, Constant.ACTENABLED, b);
57 return (QMenu)QtXnl.widget_get_object(nativehandle, Constant.GETMENU);
61 return (QWidget)QtXnl.widget_get_object(nativehandle, Constant.PARENTWIDGET);
65 QtXnl.widget_slot(nativehandle, Constant.TRIGGER);
69 QtXnl.widget_set_bool_value(nativehandle, Constant.CHECKED, b);
73 return QtXnl.widget_get_bool_value(nativehandle, Constant.CHECKED);
77 QtXnl.widget_set_bool_value(nativehandle, Constant.CHECKABLE, b);
81 return QtXnl.widget_get_bool_value(nativehandle, Constant.CHECKABLE);
void setShortcut(String shortcutKey)
void setMenu(@NotNilptr QMenu menu)
void setText(String text)
bool create(@NotNilptr QWidget parent)
void setShortcut(int StandardKey)
void setSeparator(bool b)
void setCheckable(bool b)