Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1916

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QAction" doc="/**
&lt;p&gt;The &lt;a href=&quot;QAction.html#QAction(com.trolltech.qt.gui.QIcon, java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; class provides an abstract user interface action that can be inserted into widgets.&lt;/p&gt;
&lt;p&gt;In applications many common commands can be invoked via menus, toolbar buttons, and keyboard shortcuts. Since the user expects each command to be performed in the same way, regardless of the user interface used, it is useful to represent each command as an &lt;i&gt;action&lt;/i&gt;.&lt;/p&gt;
&lt;p&gt;Actions can be added to menus and toolbars, and will automatically keep them in sync. For example, in a word processor, if the user presses a Bold toolbar button, the Bold menu item will automatically be checked.&lt;/p&gt;
&lt;p&gt;Actions can be created as independent objects, but they may also be created during the construction of menus; the &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt; class contains convenience functions for creating actions suitable for use as menu items.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QAction.html#QAction(com.trolltech.qt.gui.QIcon, java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; may contain an icon, menu text, a shortcut, status text, &amp;quot;What's This?&amp;quot; text, and a tooltip. Most of these can be set in the constructor. They can also be set independently with &lt;a href=&quot;QAction.html#setIcon(com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAction.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAction.html#setIconText(java.lang.String)&quot;&gt;&lt;tt&gt;setIconText&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAction.html#setShortcut(com.trolltech.qt.gui.QKeySequence)&quot;&gt;&lt;tt&gt;setShortcut&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAction.html#setStatusTip(java.lang.String)&quot;&gt;&lt;tt&gt;setStatusTip&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAction.html#setWhatsThis(java.lang.String)&quot;&gt;&lt;tt&gt;setWhatsThis&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QAction.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;. For menu items, it is possible to set an individual font with &lt;a href=&quot;QAction.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Actions are added to widgets using QWidget::addAction(). Note that an action must be added to a widget before it can be used; this is also true when the shortcut should be global (i.e&amp;#x2e;, Qt::ApplicationShortcut as Qt::ShortcutContext).&lt;/p&gt;
&lt;p&gt;Once a &lt;a href=&quot;QAction.html#QAction(com.trolltech.qt.gui.QIcon, java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; has been created it should be added to the relevant menu and toolbar, then connected to the slot which will perform the action. For example:&lt;/p&gt;
&lt;pre&gt;        openAct = new QAction(QIcon(&amp;quot;:/images/open.png&amp;quot;), tr(&amp;quot;&amp;amp;Open...&amp;quot;), this);
        openAct-&amp;gt;setShortcut(tr(&amp;quot;Ctrl+O&amp;quot;));
        openAct-&amp;gt;setStatusTip(tr(&amp;quot;Open an existing file&amp;quot;));
        connect(openAct, SIGNAL(triggered()), this, SLOT(open()));

        fileMenu-&amp;gt;addAction(openAct);
        fileToolBar-&amp;gt;addAction(openAct);&lt;/pre&gt;
&lt;p&gt;We recommend that actions are created as children of the window they are used in. In most cases actions will be children of the application's main window.&lt;/p&gt;

@see &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-application.html&quot;&gt;Application Example&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void changed()" doc="/**
&lt;p&gt;This signal is emitted when an action has changed. If you are only interested in actions in a given widget, you can watch for QWidget::actionEvent() sent with an QEvent::ActionChanged.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QWidget::actionEvent&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void hovered()" doc="/**
&lt;p&gt;This signal is emitted when an action is highlighted by the user; for example, when the user pauses with the cursor over a menu option, toolbar button, or presses an action's shortcut key combination.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QAction::activate&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void toggled(boolean arg__1)" doc="/**
&lt;p&gt;This signal is emitted whenever a checkable action changes its &lt;a href=&quot;QAction.html#isChecked()&quot;&gt;&lt;tt&gt;isChecked&lt;/tt&gt;&lt;/a&gt; status. This can be the result of a user interaction, or because &lt;a href=&quot;QAction.html#setChecked(boolean)&quot;&gt;&lt;tt&gt;setChecked&lt;/tt&gt;&lt;/a&gt; was called.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;arg__1&lt;/tt&gt; is true if the action is checked, or false if the action is unchecked.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QAction::activate&lt;/tt&gt;, &lt;tt&gt;QAction::triggered&lt;/tt&gt;, checked&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void triggered(boolean checked)" doc="/**
&lt;p&gt;This signal is emitted when an action is activated by the user; for example, when the user clicks a menu option, toolbar button, or presses an action's shortcut key combination, or when &lt;a href=&quot;QAction.html#trigger()&quot;&gt;&lt;tt&gt;trigger&lt;/tt&gt;&lt;/a&gt; was called. Notably, it is &lt;i&gt;not&lt;/i&gt; emitted when &lt;a href=&quot;QAction.html#setChecked(boolean)&quot;&gt;&lt;tt&gt;setChecked&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QAction.html#toggle()&quot;&gt;&lt;tt&gt;toggle&lt;/tt&gt;&lt;/a&gt; is called.&lt;/p&gt;
&lt;p&gt;If the action is checkable, &lt;tt&gt;checked&lt;/tt&gt; is true if the action is checked, or false if the action is unchecked.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean checked)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QAction::activate&lt;/tt&gt;, &lt;tt&gt;QAction::toggled&lt;/tt&gt;, checked&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QAction(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs an action with &lt;tt&gt;parent&lt;/tt&gt;. If &lt;tt&gt;parent&lt;/tt&gt; is an action group the action will be automatically inserted into the group.&lt;/p&gt;
 */"/>
    <method name="public QAction(java.lang.String text, com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs an action with some &lt;tt&gt;text&lt;/tt&gt; and &lt;tt&gt;parent&lt;/tt&gt;. If &lt;tt&gt;parent&lt;/tt&gt; is an action group the action will be automatically inserted into the group.&lt;/p&gt;
&lt;p&gt;The action uses a stripped version of &lt;tt&gt;text&lt;/tt&gt; (e.g&amp;#x2e; &amp;quot;&amp;amp;Menu Option..&amp;#x2e;&amp;quot; becomes &amp;quot;Menu Option&amp;quot;) as descriptive text for tool buttons. You can override this by setting a specific description with &lt;a href=&quot;QAction.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;. The same text will be used for tooltips unless you specify a different text using &lt;a href=&quot;QAction.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public QAction(com.trolltech.qt.gui.QIcon icon, java.lang.String text, com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs an action with an &lt;tt&gt;icon&lt;/tt&gt; and some &lt;tt&gt;text&lt;/tt&gt; and &lt;tt&gt;parent&lt;/tt&gt;. If &lt;tt&gt;parent&lt;/tt&gt; is an action group the action will be automatically inserted into the group.&lt;/p&gt;
&lt;p&gt;The action uses a stripped version of &lt;tt&gt;text&lt;/tt&gt; (e.g&amp;#x2e; &amp;quot;&amp;amp;Menu Option..&amp;#x2e;&amp;quot; becomes &amp;quot;Menu Option&amp;quot;) as descriptive text for tool buttons. You can override this by setting a specific description with &lt;a href=&quot;QAction.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;. The same text will be used for tooltips unless you specify a different text using &lt;a href=&quot;QAction.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QActionGroup actionGroup()" doc="/**
&lt;p&gt;Returns the action group for this action. If no action group manages this action then 0 will be returned.&lt;/p&gt;

@see &lt;a href=&quot;QActionGroup.html&quot;&gt;&lt;tt&gt;QActionGroup&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QAction::setActionGroup&lt;/tt&gt; */"/>
    <method name="public final void activate(com.trolltech.qt.gui.QAction.ActionEvent event)" doc="/**
&lt;p&gt;Sends the relevant signals for &lt;a href=&quot;QAction.html#ActionEvent-enum&quot;&gt;&lt;tt&gt;ActionEvent&lt;/tt&gt;&lt;/a&gt; &lt;tt&gt;event&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Action based widgets use this API to cause the &lt;a href=&quot;QAction.html#QAction(com.trolltech.qt.gui.QIcon, java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; to emit signals as well as emitting their own.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QWidget&gt; associatedWidgets()" doc="/**
&lt;p&gt;Returns a list of widgets this action has been added to.&lt;/p&gt;

@see &lt;tt&gt;QWidget::addAction&lt;/tt&gt; */"/>
    <method name="public final boolean autoRepeat()" doc="/**
&lt;p&gt;Returns whether the action can auto repeat.&lt;/p&gt;
&lt;p&gt;If true, the action will auto repeat when the keyboard shortcut combination is held down, provided that keyboard auto repeat is enabled on the system. The default value is true.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setAutoRepeat(boolean)&quot;&gt;&lt;tt&gt;setAutoRepeat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.Object data()" doc="/**
&lt;p&gt;Returns the user data as set in QAction::setData.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setData(java.lang.Object)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFont font()" doc="/**
&lt;p&gt;Returns the action's font.&lt;/p&gt;
&lt;p&gt;The font property is used to render the text set on the &lt;a href=&quot;QAction.html#QAction(com.trolltech.qt.gui.QIcon, java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt;. The font will can be considered a hint as it will not be consulted in all cases based upon application and style.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QAction::setText&lt;/tt&gt;
@see &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void hover()" doc="/**
&lt;p&gt;This is a convenience slot that calls activate(Hover).&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QIcon icon()" doc="/**
&lt;p&gt;Returns the action's icon.&lt;/p&gt;
&lt;p&gt;In toolbars, the icon is used as the tool button icon; in menus, it is displayed to the left of the menu text. There is no default icon.&lt;/p&gt;
&lt;p&gt;If a null icon (QIcon::isNull() is passed into this function, the icon of the action is cleared.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setIcon(com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String iconText()" doc="/**
&lt;p&gt;Returns the action's descriptive icon text.&lt;/p&gt;
&lt;p&gt;If QToolBar::toolButtonStyle is set to a value that permits text to be displayed, the text defined held in this property appears as a label in the relevant tool button.&lt;/p&gt;
&lt;p&gt;It also serves as the default text in menus and tooltips if the action has not been defined with &lt;a href=&quot;QAction.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QAction.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;, and will also be used in toolbar buttons if no icon has been defined using &lt;a href=&quot;QAction.html#setIcon(com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If the icon text is not explicitly set, the action's normal text will be used for the icon text.&lt;/p&gt;
&lt;p&gt;There is no default icon text.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setIconText(java.lang.String)&quot;&gt;&lt;tt&gt;setIconText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#setStatusTip(java.lang.String)&quot;&gt;&lt;tt&gt;setStatusTip&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isCheckable()" doc="/**
&lt;p&gt;Returns whether the action is a checkable action.&lt;/p&gt;
&lt;p&gt;A checkable action is one which has an on/off state. For example, in a word processor, a Bold toolbar button may be either on or off. An action which is not a toggle action is a command action; a command action is simply executed, e.g&amp;#x2e; file save. By default, this property is false.&lt;/p&gt;
&lt;p&gt;In some situations, the state of one toggle action should depend on the state of others. For example, &amp;quot;Left Align&amp;quot;, &amp;quot;Center&amp;quot; and &amp;quot;Right Align&amp;quot; toggle actions are mutually exclusive. To achieve exclusive toggling, add the relevant toggle actions to a &lt;a href=&quot;QActionGroup.html&quot;&gt;&lt;tt&gt;QActionGroup&lt;/tt&gt;&lt;/a&gt; with the QActionGroup::exclusive property set to true.&lt;/p&gt;

@see &lt;tt&gt;QAction::setChecked&lt;/tt&gt; */"/>
    <method name="public final boolean isChecked()" doc="/**
&lt;p&gt;Returns whether the action is checked..&lt;/p&gt;
&lt;p&gt;Only checkable actions can be checked. By default, this is false (the action is unchecked).&lt;/p&gt;

@see checkable&lt;/tt&gt; */"/>
    <method name="public final boolean isEnabled()" doc="/**
&lt;p&gt;Returns whether the action is enabled.&lt;/p&gt;
&lt;p&gt;Disabled actions cannot be chosen by the user. They do not disappear from menus or toolbars, but they are displayed in a way which indicates that they are unavailable. For example, they might be displayed using only shades of gray.&lt;/p&gt;
&lt;p&gt;What's this? help on disabled actions is still available, provided that the QAction::whatsThis property is set.&lt;/p&gt;
 */"/>
    <method name="public final boolean isSeparator()" doc="/**
&lt;p&gt;Returns true if this action is a separator action; otherwise it returns false.&lt;/p&gt;

@see &lt;tt&gt;QAction::setSeparator&lt;/tt&gt; */"/>
    <method name="public final boolean isVisible()" doc="/**
&lt;p&gt;Returns whether the action can be seen (e.g&amp;#x2e; in menus and toolbars).&lt;/p&gt;
&lt;p&gt;If &lt;i&gt;visible&lt;/i&gt; is true the action can be seen (e.g&amp;#x2e; in menus and toolbars) and chosen by the user; if &lt;i&gt;visible&lt;/i&gt; is false the action cannot be seen or chosen by the user.&lt;/p&gt;
&lt;p&gt;Actions which are not visible are &lt;i&gt;not&lt;/i&gt; grayed out; they do not appear at all.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QMenu menu()" doc="/**
&lt;p&gt;Returns the menu contained by this action. Actions that contain menus can be used to create menu items with submenus, or inserted into toolbars to create buttons with popup menus.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setMenu(com.trolltech.qt.gui.QMenu)&quot;&gt;&lt;tt&gt;setMenu&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QMenu::addAction&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAction.MenuRole menuRole()" doc="/**
&lt;p&gt;Returns the action's menu role.&lt;/p&gt;
&lt;p&gt;This indicates what role the action serves in the application menu on Mac OS X. By default all action have the &lt;a href=&quot;QAction.html#MenuRole-enum&quot;&gt;&lt;tt&gt;TextHeuristicRole&lt;/tt&gt;&lt;/a&gt;, which means that the action is added based on its text (see &lt;a href=&quot;QMenuBar.html&quot;&gt;&lt;tt&gt;QMenuBar&lt;/tt&gt;&lt;/a&gt; for more information).&lt;/p&gt;
&lt;p&gt;The menu role can only be changed before the actions are put into the menu bar in Mac OS X (usually just before the first application window is shown).&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setMenuRole(com.trolltech.qt.gui.QAction.MenuRole)&quot;&gt;&lt;tt&gt;setMenuRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget parentWidget()" doc="/**
&lt;p&gt;Returns the parent widget.&lt;/p&gt;
 */"/>
    <method name="public final void setActionGroup(com.trolltech.qt.gui.QActionGroup group)" doc="/**
&lt;p&gt;Sets this action group to &lt;tt&gt;group&lt;/tt&gt;. The action will be automatically added to the group's list of actions.&lt;/p&gt;
&lt;p&gt;Actions within the group will be mutually exclusive.&lt;/p&gt;

@see &lt;a href=&quot;QActionGroup.html&quot;&gt;&lt;tt&gt;QActionGroup&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QAction::actionGroup&lt;/tt&gt; */"/>
    <method name="public final void setAutoRepeat(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the action can auto repeat to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If true, the action will auto repeat when the keyboard shortcut combination is held down, provided that keyboard auto repeat is enabled on the system. The default value is true.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#autoRepeat()&quot;&gt;&lt;tt&gt;autoRepeat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCheckable(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the action is a checkable action to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;A checkable action is one which has an on/off state. For example, in a word processor, a Bold toolbar button may be either on or off. An action which is not a toggle action is a command action; a command action is simply executed, e.g&amp;#x2e; file save. By default, this property is false.&lt;/p&gt;
&lt;p&gt;In some situations, the state of one toggle action should depend on the state of others. For example, &amp;quot;Left Align&amp;quot;, &amp;quot;Center&amp;quot; and &amp;quot;Right Align&amp;quot; toggle actions are mutually exclusive. To achieve exclusive toggling, add the relevant toggle actions to a &lt;a href=&quot;QActionGroup.html&quot;&gt;&lt;tt&gt;QActionGroup&lt;/tt&gt;&lt;/a&gt; with the QActionGroup::exclusive property set to true.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#isCheckable()&quot;&gt;&lt;tt&gt;isCheckable&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QAction::setChecked&lt;/tt&gt; */"/>
    <method name="public final void setChecked(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the action is checked. to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Only checkable actions can be checked. By default, this is false (the action is unchecked).&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#isChecked()&quot;&gt;&lt;tt&gt;isChecked&lt;/tt&gt;&lt;/a&gt;
@see checkable&lt;/tt&gt; */"/>
    <method name="public final void setData(java.lang.Object var)" doc="/**
&lt;p&gt;Sets the action's internal data to the given &lt;tt&gt;var&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#data()&quot;&gt;&lt;tt&gt;data&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDisabled(boolean b)" doc="/**
&lt;p&gt;This is a convenience function for the enabled&lt;/tt&gt; property, that is useful for signals--slots connections. If &lt;tt&gt;b&lt;/tt&gt; is true the action is disabled; otherwise it is enabled.&lt;/p&gt;
 */"/>
    <method name="public final void setEnabled(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the action is enabled to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Disabled actions cannot be chosen by the user. They do not disappear from menus or toolbars, but they are displayed in a way which indicates that they are unavailable. For example, they might be displayed using only shades of gray.&lt;/p&gt;
&lt;p&gt;What's this? help on disabled actions is still available, provided that the QAction::whatsThis property is set.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#isEnabled()&quot;&gt;&lt;tt&gt;isEnabled&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFont(com.trolltech.qt.gui.QFont font)" doc="/**
&lt;p&gt;Sets the action's font to &lt;tt&gt;font&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The font property is used to render the text set on the &lt;a href=&quot;QAction.html#QAction(com.trolltech.qt.gui.QIcon, java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt;. The font will can be considered a hint as it will not be consulted in all cases based upon application and style.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QAction::setText&lt;/tt&gt;
@see &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setIcon(com.trolltech.qt.gui.QIcon icon)" doc="/**
&lt;p&gt;Sets the action's icon to &lt;tt&gt;icon&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;In toolbars, the icon is used as the tool button icon; in menus, it is displayed to the left of the menu text. There is no default icon.&lt;/p&gt;
&lt;p&gt;If a null icon (QIcon::isNull() is passed into this function, the icon of the action is cleared.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#icon()&quot;&gt;&lt;tt&gt;icon&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setIconText(java.lang.String text)" doc="/**
&lt;p&gt;Sets the action's descriptive icon text to &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If QToolBar::toolButtonStyle is set to a value that permits text to be displayed, the text defined held in this property appears as a label in the relevant tool button.&lt;/p&gt;
&lt;p&gt;It also serves as the default text in menus and tooltips if the action has not been defined with &lt;a href=&quot;QAction.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QAction.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;, and will also be used in toolbar buttons if no icon has been defined using &lt;a href=&quot;QAction.html#setIcon(com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If the icon text is not explicitly set, the action's normal text will be used for the icon text.&lt;/p&gt;
&lt;p&gt;There is no default icon text.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#iconText()&quot;&gt;&lt;tt&gt;iconText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#setStatusTip(java.lang.String)&quot;&gt;&lt;tt&gt;setStatusTip&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMenu(com.trolltech.qt.gui.QMenu menu)" doc="/**
&lt;p&gt;Sets the menu contained by this action to the specified &lt;tt&gt;menu&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#menu()&quot;&gt;&lt;tt&gt;menu&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMenuRole(com.trolltech.qt.gui.QAction.MenuRole menuRole)" doc="/**
&lt;p&gt;Sets the action's menu role to &lt;tt&gt;menuRole&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This indicates what role the action serves in the application menu on Mac OS X. By default all action have the &lt;a href=&quot;QAction.html#MenuRole-enum&quot;&gt;&lt;tt&gt;TextHeuristicRole&lt;/tt&gt;&lt;/a&gt;, which means that the action is added based on its text (see &lt;a href=&quot;QMenuBar.html&quot;&gt;&lt;tt&gt;QMenuBar&lt;/tt&gt;&lt;/a&gt; for more information).&lt;/p&gt;
&lt;p&gt;The menu role can only be changed before the actions are put into the menu bar in Mac OS X (usually just before the first application window is shown).&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#menuRole()&quot;&gt;&lt;tt&gt;menuRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSeparator(boolean b)" doc="/**
&lt;p&gt;If &lt;tt&gt;b&lt;/tt&gt; is true then this action will be considered a separator.&lt;/p&gt;
&lt;p&gt;How a separator is represented depends on the widget it is inserted into. Under most circumstances the text, submenu, and icon will be ignored for separator actions.&lt;/p&gt;

@see &lt;tt&gt;QAction::isSeparator&lt;/tt&gt; */"/>
    <method name="public final void setShortcut(com.trolltech.qt.gui.QKeySequence shortcut)" doc="/**
&lt;p&gt;Sets the action's primary shortcut key to &lt;tt&gt;shortcut&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Valid keycodes for this property can be found in Qt::Key&lt;/tt&gt; and Qt::Modifier&lt;/tt&gt;. There is no default shortcut key.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#shortcut()&quot;&gt;&lt;tt&gt;shortcut&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setShortcutContext(com.trolltech.qt.core.Qt.ShortcutContext context)" doc="/**
&lt;p&gt;Sets the context for the action's shortcut to &lt;tt&gt;context&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Valid values for this property can be found in &lt;tt&gt;Qt::ShortcutContext&lt;/tt&gt;. The default value is Qt::WindowShortcut.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#shortcutContext()&quot;&gt;&lt;tt&gt;shortcutContext&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setShortcuts(com.trolltech.qt.gui.QKeySequence.StandardKey arg__1)" doc="/**
&lt;p&gt;Sets a platform dependent list of shortcuts based on the &lt;tt&gt;arg__1&lt;/tt&gt;. The result of calling this function will depend on the currently running platform. Note that more than one shortcut can assigned by this action. If only the primary shortcut is required, use &lt;a href=&quot;QAction.html#setShortcut(com.trolltech.qt.gui.QKeySequence)&quot;&gt;&lt;tt&gt;setShortcut&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;

@see &lt;tt&gt;QKeySequence::keyBindings&lt;/tt&gt; */"/>
    <method name="public final void setShortcuts(java.util.List&lt;com.trolltech.qt.gui.QKeySequence&gt; shortcuts)" doc="/**
&lt;p&gt;Sets &lt;tt&gt;shortcuts&lt;/tt&gt; as the list of shortcuts that trigger the action. The first element of the list is the primary shortcut.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#shortcuts()&quot;&gt;&lt;tt&gt;shortcuts&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#shortcut()&quot;&gt;shortcut&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStatusTip(java.lang.String statusTip)" doc="/**
&lt;p&gt;Sets the action's status tip to &lt;tt&gt;statusTip&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The status tip is displayed on all status bars provided by the action's top-level parent widget.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#statusTip()&quot;&gt;&lt;tt&gt;statusTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#showStatusText(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;showStatusText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setText(java.lang.String text)" doc="/**
&lt;p&gt;Sets the action's descriptive text to &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the action is added to a menu, the menu option will consist of the icon (if there is one), the text, and the shortcut (if there is one). If the text is not explicitly set in the constructor, or by using &lt;a href=&quot;QAction.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;, the action's description icon text will be used as text. There is no default text.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#iconText()&quot;&gt;&lt;tt&gt;iconText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setToolTip(java.lang.String tip)" doc="/**
&lt;p&gt;Sets the action's tooltip to &lt;tt&gt;tip&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This text is used for the tooltip. If no tooltip is specified, the action's text is used.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#toolTip()&quot;&gt;&lt;tt&gt;toolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#setStatusTip(java.lang.String)&quot;&gt;&lt;tt&gt;setStatusTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#setShortcut(com.trolltech.qt.gui.QKeySequence)&quot;&gt;&lt;tt&gt;setShortcut&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setVisible(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the action can be seen (e.g&amp;#x2e; in menus and toolbars) to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;i&gt;visible&lt;/i&gt; is true the action can be seen (e.g&amp;#x2e; in menus and toolbars) and chosen by the user; if &lt;i&gt;visible&lt;/i&gt; is false the action cannot be seen or chosen by the user.&lt;/p&gt;
&lt;p&gt;Actions which are not visible are &lt;i&gt;not&lt;/i&gt; grayed out; they do not appear at all.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWhatsThis(java.lang.String what)" doc="/**
&lt;p&gt;Sets the action's &amp;quot;What's This?&amp;quot; help text to &lt;tt&gt;what&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &amp;quot;What's This?&amp;quot; text is used to provide a brief description of the action. The text may contain rich text. There is no default &amp;quot;What's This?&amp;quot; text.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#whatsThis()&quot;&gt;&lt;tt&gt;whatsThis&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWhatsThis.html&quot;&gt;&lt;tt&gt;QWhatsThis&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/porting4.html#qstylesheet&quot;&gt;&lt;tt&gt;QStyleSheet&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QKeySequence shortcut()" doc="/**
&lt;p&gt;Returns the action's primary shortcut key.&lt;/p&gt;
&lt;p&gt;Valid keycodes for this property can be found in Qt::Key&lt;/tt&gt; and Qt::Modifier&lt;/tt&gt;. There is no default shortcut key.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setShortcut(com.trolltech.qt.gui.QKeySequence)&quot;&gt;&lt;tt&gt;setShortcut&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.ShortcutContext shortcutContext()" doc="/**
&lt;p&gt;Returns the context for the action's shortcut.&lt;/p&gt;
&lt;p&gt;Valid values for this property can be found in &lt;tt&gt;Qt::ShortcutContext&lt;/tt&gt;. The default value is Qt::WindowShortcut.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setShortcutContext(com.trolltech.qt.core.Qt.ShortcutContext)&quot;&gt;&lt;tt&gt;setShortcutContext&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QKeySequence&gt; shortcuts()" doc="/**
&lt;p&gt;Returns the list of shortcuts, with the primary shortcut as the first element of the list.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setShortcuts(java.util.List&lt;com.trolltech.qt.gui.QKeySequence&gt;)&quot;&gt;&lt;tt&gt;setShortcuts&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean showStatusText(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Updates the relevant status bar for the &lt;tt&gt;widget&lt;/tt&gt; specified by sending a &lt;a href=&quot;QStatusTipEvent.html&quot;&gt;&lt;tt&gt;QStatusTipEvent&lt;/tt&gt;&lt;/a&gt; to its parent widget. Returns true if an event was sent; otherwise returns false.&lt;/p&gt;
&lt;p&gt;If a null widget is specified, the event is sent to the action's parent.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#statusTip()&quot;&gt;&lt;tt&gt;statusTip&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean showStatusText()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QAction.html#showStatusText(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;showStatusText&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final java.lang.String statusTip()" doc="/**
&lt;p&gt;Returns the action's status tip.&lt;/p&gt;
&lt;p&gt;The status tip is displayed on all status bars provided by the action's top-level parent widget.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setStatusTip(java.lang.String)&quot;&gt;&lt;tt&gt;setStatusTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#showStatusText(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;showStatusText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Returns the action's descriptive text.&lt;/p&gt;
&lt;p&gt;If the action is added to a menu, the menu option will consist of the icon (if there is one), the text, and the shortcut (if there is one). If the text is not explicitly set in the constructor, or by using &lt;a href=&quot;QAction.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;, the action's description icon text will be used as text. There is no default text.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#iconText()&quot;&gt;&lt;tt&gt;iconText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void toggle()" doc="/**
&lt;p&gt;This is a convenience function for the checked&lt;/tt&gt; property. Connect to it to change the checked state to its opposite state.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String toolTip()" doc="/**
&lt;p&gt;Returns the action's tooltip.&lt;/p&gt;
&lt;p&gt;This text is used for the tooltip. If no tooltip is specified, the action's text is used.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#setStatusTip(java.lang.String)&quot;&gt;&lt;tt&gt;setStatusTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html#setShortcut(com.trolltech.qt.gui.QKeySequence)&quot;&gt;&lt;tt&gt;setShortcut&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void trigger()" doc="/**
&lt;p&gt;This is a convenience slot that calls activate(Trigger).&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String whatsThis()" doc="/**
&lt;p&gt;Returns the action's &amp;quot;What's This?&amp;quot; help text.&lt;/p&gt;
&lt;p&gt;The &amp;quot;What's This?&amp;quot; text is used to provide a brief description of the action. The text may contain rich text. There is no default &amp;quot;What's This?&amp;quot; text.&lt;/p&gt;

@see &lt;a href=&quot;QAction.html#setWhatsThis(java.lang.String)&quot;&gt;&lt;tt&gt;setWhatsThis&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWhatsThis.html&quot;&gt;&lt;tt&gt;QWhatsThis&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/porting4.html#qstylesheet&quot;&gt;&lt;tt&gt;QStyleSheet&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <enum name="ActionEvent" doc="/**
&lt;p&gt;This enum type is used when calling QAction::activate()&lt;/p&gt;
 */">
        <enum-value name="Trigger" doc="/**
&lt;p&gt;this will cause the QAction::triggered() signal to be emitted.&lt;/p&gt;
 */"/>
        <enum-value name="Hover" doc="/**
&lt;p&gt;this will cause the QAction::hovered() signal to be emitted.&lt;/p&gt;
 */"/>
</enum>
    <enum name="MenuRole" doc="/**
&lt;p&gt;This enum describes how an action should be moved into the application menu on Mac OS X.&lt;/p&gt;
 */">
        <enum-value name="NoRole" doc="/**
&lt;p&gt;This action should not be put into the application menu&lt;/p&gt;
 */"/>
        <enum-value name="TextHeuristicRole" doc="/**
&lt;p&gt;This action should be put in the application menu based on the action's text as described in the &lt;a href=&quot;QMenuBar.html&quot;&gt;&lt;tt&gt;QMenuBar&lt;/tt&gt;&lt;/a&gt; documentation.&lt;/p&gt;
 */"/>
        <enum-value name="ApplicationSpecificRole" doc="/**
&lt;p&gt;This action should be put in the application menu with an application specific role&lt;/p&gt;
 */"/>
        <enum-value name="AboutQtRole" doc="/**
&lt;p&gt;This action matches handles the &amp;quot;About Qt&amp;quot; menu item.&lt;/p&gt;
 */"/>
        <enum-value name="AboutRole" doc="/**
&lt;p&gt;This action should be placed where the &amp;quot;About&amp;quot; menu item is in the application menu.&lt;/p&gt;
 */"/>
        <enum-value name="PreferencesRole" doc="/**
&lt;p&gt;This action should be placed where the &amp;quot;Preferences..&amp;#x2e;&amp;quot; menu item is in the application menu.&lt;/p&gt;
 */"/>
        <enum-value name="QuitRole" doc="/**
&lt;p&gt;This action should be placed where the Quit menu item is in the application menu.&lt;/p&gt;
 */"/>
</enum>
</class>