Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2171

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

<class name="QPushButton" doc="/**
&lt;p&gt;The &lt;a href=&quot;QPushButton.html#QPushButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QPushButton&lt;/tt&gt;&lt;/a&gt; widget provides a command button.&lt;/p&gt;
&lt;p&gt;The push button, or command button, is perhaps the most commonly used widget in any graphical user interface. Push (click) a button to command the computer to perform some action, or to answer a question. Typical buttons are OK, Apply, Cancel, Close, Yes, No and Help.&lt;/p&gt;
&lt;p&gt;A command button is rectangular and typically displays a text label describing its action. A shortcut key can be specified by preceding the preferred character with an ampersand in the text. For example:&lt;/p&gt;
&lt;pre&gt;    QPushButton *button = new QPushButton(&amp;quot;&amp;amp;Download&amp;quot;, this);&lt;/pre&gt;
&lt;p&gt;In this example the shortcut is &lt;i&gt;Alt+D&lt;/i&gt;. See the &lt;a href=&quot;QShortcut.html#mnemonic&quot;&gt;QShortcut&lt;/a&gt; documentation for details (to display an actual ampersand, use '&amp;amp;&amp;amp;').&lt;/p&gt;
&lt;p&gt;Push buttons display a textual label, and optionally a small icon. These can be set using the constructors and changed later using &lt;a href=&quot;QAbstractButton.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QAbstractButton.html#setIcon(com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt;. If the button is disabled the appearance of the text and icon will be manipulated with respect to the GUI style to make the button look &amp;quot;disabled&amp;quot;.&lt;/p&gt;
&lt;p&gt;A push button emits the signal &lt;a href=&quot;QPushButton.html#clicked(boolean)&quot;&gt;&lt;tt&gt;clicked&lt;/tt&gt;&lt;/a&gt; when it is activated by the mouse, the Spacebar or by a keyboard shortcut. Connect to this signal to perform the button's action. Push buttons also provide less commonly used signals, for example, &lt;a href=&quot;QPushButton.html#pressed()&quot;&gt;&lt;tt&gt;pressed&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPushButton.html#released()&quot;&gt;&lt;tt&gt;released&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Command buttons in dialogs are by default auto-default buttons, i.e&amp;#x2e; they become the default push button automatically when they receive the keyboard input focus. A default button is a push button that is activated when the user presses the Enter or Return key in a dialog. You can change this with &lt;a href=&quot;QPushButton.html#setAutoDefault(boolean)&quot;&gt;&lt;tt&gt;setAutoDefault&lt;/tt&gt;&lt;/a&gt;. Note that auto-default buttons reserve a little extra space which is necessary to draw a default-button indicator. If you do not want this space around your buttons, call &lt;a href=&quot;QPushButton.html#setAutoDefault(boolean)&quot;&gt;&lt;tt&gt;setAutoDefault&lt;/tt&gt;&lt;/a&gt;(false).&lt;/p&gt;
&lt;p&gt;Being so central, the button widget has grown to accommodate a great many variations in the past decade. The Microsoft style guide now shows about ten different states of Windows push buttons and the text implies that there are dozens more when all the combinations of features are taken into consideration.&lt;/p&gt;
&lt;p&gt;The most important modes or states are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Available or not (grayed out, disabled).&lt;/li&gt;
&lt;li&gt;Standard push button, toggling push button or menu button.&lt;/li&gt;
&lt;li&gt;On or off (only for toggling push buttons).&lt;/li&gt;
&lt;li&gt;Default or normal. The default button in a dialog can generally be &amp;quot;clicked&amp;quot; using the Enter or Return key.&lt;/li&gt;
&lt;li&gt;Auto-repeat or not.&lt;/li&gt;
&lt;li&gt;Pressed down or not.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As a general rule, use a push button when the application or dialog window performs an action when the user clicks on it (such as Apply, Cancel, Close and Help) &lt;i&gt;and&lt;/i&gt; when the widget is supposed to have a wide, rectangular shape with a text label. Small, typically square buttons that change the state of the window rather than performing an action (such as the buttons in the top-right corner of the &lt;a href=&quot;QFileDialog.html&quot;&gt;&lt;tt&gt;QFileDialog&lt;/tt&gt;&lt;/a&gt;) are not command buttons, but tool buttons. Qt provides a special class (&lt;a href=&quot;QToolButton.html&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt;) for these buttons.&lt;/p&gt;
&lt;p&gt;If you need toggle behavior (see &lt;a href=&quot;QAbstractButton.html#setCheckable(boolean)&quot;&gt;&lt;tt&gt;setCheckable&lt;/tt&gt;&lt;/a&gt;) or a button that auto-repeats the activation signal when being pushed down like the arrows in a scroll bar (see &lt;a href=&quot;QAbstractButton.html#setAutoRepeat(boolean)&quot;&gt;&lt;tt&gt;setAutoRepeat&lt;/tt&gt;&lt;/a&gt;), a command button is probably not what you want. When in doubt, use a tool button.&lt;/p&gt;
&lt;p&gt;A variation of a command button is a menu button. These provide not just one command, but several, since when they are clicked they pop up a menu of options. Use the method &lt;a href=&quot;QPushButton.html#setMenu(com.trolltech.qt.gui.QMenu)&quot;&gt;&lt;tt&gt;setMenu&lt;/tt&gt;&lt;/a&gt; to associate a popup menu with a push button.&lt;/p&gt;
&lt;p&gt;Other classes of buttons are option buttons (see &lt;a href=&quot;QRadioButton.html&quot;&gt;&lt;tt&gt;QRadioButton&lt;/tt&gt;&lt;/a&gt;) and check boxes (see &lt;a href=&quot;QCheckBox.html&quot;&gt;&lt;tt&gt;QCheckBox&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/macintosh-pushbutton.png&quot; alt=&quot;Screenshot of a Macintosh style push button&quot; /&gt;&lt;/td&gt;&lt;td&gt;A push button shown in the &lt;a href=&quot;%2E%2E/gallery-macintosh.html&quot;&gt;Macintosh widget style&lt;/tt&gt;&lt;/a&gt;.&lt;p&gt;Note that when a button's width becomes smaller than 50 or its height becomes smaller than 30, the button's corners are changed from round to square. Use the &lt;a href=&quot;QWidget.html#setMinimumSize(int, int)&quot;&gt;&lt;tt&gt;setMinimumSize&lt;/tt&gt;&lt;/a&gt; function to prevent this behavior.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/windowsxp-pushbutton.png&quot; alt=&quot;Screenshot of a Windows XP style push button&quot; /&gt;&lt;/td&gt;&lt;td&gt;A push button shown in the &lt;a href=&quot;%2E%2E/gallery-windowsxp.html&quot;&gt;Windows XP widget style&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/plastique-pushbutton.png&quot; alt=&quot;Screenshot of a Plastique style push button&quot; /&gt;&lt;/td&gt;&lt;td&gt;A push button shown in the &lt;a href=&quot;%2E%2E/gallery-plastique.html&quot;&gt;Plastique widget style&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;In Qt, the &lt;a href=&quot;QAbstractButton.html#QAbstractButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractButton&lt;/tt&gt;&lt;/a&gt; base class provides most of the modes and other API, and &lt;a href=&quot;QPushButton.html#QPushButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QPushButton&lt;/tt&gt;&lt;/a&gt; provides GUI logic. See &lt;a href=&quot;QAbstractButton.html#QAbstractButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractButton&lt;/tt&gt;&lt;/a&gt; for more information about the API.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRadioButton.html&quot;&gt;&lt;tt&gt;QRadioButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCheckBox.html&quot;&gt;&lt;tt&gt;QCheckBox&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/guibooks.html#fowler&quot;&gt;GUI Design Handbook: Push Button&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void clicked(boolean checked)" doc="/**
&lt;p&gt;This signal is emitted when the button is activated (i.e&amp;#x2e; pressed down then released while the mouse cursor is inside the button), when the shortcut key is typed, or when &lt;a href=&quot;QAbstractButton.html#click()&quot;&gt;&lt;tt&gt;click&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QAbstractButton.html#animateClick(int)&quot;&gt;&lt;tt&gt;animateClick&lt;/tt&gt;&lt;/a&gt; is called. Notably, this signal is &lt;i&gt;not&lt;/i&gt; emitted if you call &lt;a href=&quot;QAbstractButton.html#setDown(boolean)&quot;&gt;&lt;tt&gt;setDown&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractButton.html#setChecked(boolean)&quot;&gt;&lt;tt&gt;setChecked&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QAbstractButton.html#toggle()&quot;&gt;&lt;tt&gt;toggle&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If the button is checkable, &lt;tt&gt;checked&lt;/tt&gt; is true if the button is checked, or false if the button 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;a href=&quot;QPushButton.html#pressed()&quot;&gt;&lt;tt&gt;pressed&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPushButton.html#released()&quot;&gt;&lt;tt&gt;released&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPushButton.html#toggled(boolean)&quot;&gt;&lt;tt&gt;toggled&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&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(com.trolltech.qt.core.QPoint pos)&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;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void pressed()" doc="/**
&lt;p&gt;This signal is emitted when the button is pressed down.&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;a href=&quot;QPushButton.html#released()&quot;&gt;&lt;tt&gt;released&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPushButton.html#clicked(boolean)&quot;&gt;&lt;tt&gt;clicked&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void released()" doc="/**
&lt;p&gt;This signal is emitted when the button is released.&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;a href=&quot;QPushButton.html#pressed()&quot;&gt;&lt;tt&gt;pressed&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPushButton.html#clicked(boolean)&quot;&gt;&lt;tt&gt;clicked&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPushButton.html#toggled(boolean)&quot;&gt;&lt;tt&gt;toggled&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void toggled(boolean checked)" doc="/**
&lt;p&gt;This signal is emitted whenever a checkable button changes its state. &lt;tt&gt;checked&lt;/tt&gt; is true if the button is checked, or false if the button is unchecked.&lt;/p&gt;
&lt;p&gt;This may be the result of a user action, &lt;a href=&quot;QAbstractButton.html#click()&quot;&gt;&lt;tt&gt;click&lt;/tt&gt;&lt;/a&gt; slot activation, or because &lt;a href=&quot;QAbstractButton.html#setChecked(boolean)&quot;&gt;&lt;tt&gt;setChecked&lt;/tt&gt;&lt;/a&gt; was called.&lt;/p&gt;
&lt;p&gt;The states of buttons in exclusive button groups are updated before this signal is emitted. This means that slots can act on either the &amp;quot;off&amp;quot; signal or the &amp;quot;on&amp;quot; signal emitted by the buttons in the group whose states have changed.&lt;/p&gt;
&lt;p&gt;For example, a slot that reacts to signals emitted by newly checked buttons but which ignores signals from buttons that have been unchecked can be implemented using the following pattern:&lt;/p&gt;
&lt;pre&gt;    void MyWidget::reactToToggle(bool checked)
    {
       if (checked) {
          &lt;span class=&quot;comment&quot;&gt;// Examine the new button states.&lt;/span&gt;
          ...
       }
    }&lt;/pre&gt;
&lt;p&gt;Button groups can be created using the &lt;a href=&quot;QButtonGroup.html&quot;&gt;&lt;tt&gt;QButtonGroup&lt;/tt&gt;&lt;/a&gt; class, and updates to the button states monitored with the &lt;tt&gt;QButtonGroup::buttonClicked&lt;/tt&gt; signal.&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;checked&lt;/tt&gt;, &lt;a href=&quot;QPushButton.html#clicked(boolean)&quot;&gt;&lt;tt&gt;clicked&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QPushButton(java.lang.String text, com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a push button with the parent &lt;tt&gt;parent&lt;/tt&gt; and the text &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QPushButton(java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPushButton.html#QPushButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QPushButton&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;text&lt;/tt&gt;, 0). */"/>
    <method name="public QPushButton(com.trolltech.qt.gui.QIcon icon, java.lang.String text, com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a push button with an &lt;tt&gt;icon&lt;/tt&gt; and a &lt;tt&gt;text&lt;/tt&gt;, and a &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that you can also pass a &lt;a href=&quot;QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; object as an icon (thanks to the implicit type conversion provided by C++).&lt;/p&gt;
 */"/>
    <method name="public QPushButton(com.trolltech.qt.gui.QIcon icon, java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPushButton.html#QPushButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QPushButton&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;icon&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, 0). */"/>
    <method name="public QPushButton(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a push button with no text and a &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QPushButton()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPushButton.html#QPushButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QPushButton&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final boolean autoDefault()" doc="/**
&lt;p&gt;Returns whether the push button is an auto default button.&lt;/p&gt;
&lt;p&gt;If this property is set to true then the push button is an auto default button.&lt;/p&gt;
&lt;p&gt;In some GUI styles a default button is drawn with an extra frame around it, up to 3 pixels or more. Qt automatically keeps this space free around auto-default buttons, i.e&amp;#x2e; auto-default buttons may have a slightly larger size hint.&lt;/p&gt;
&lt;p&gt;This property's default is true for buttons that have a &lt;a href=&quot;QDialog.html&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt; parent; otherwise it defaults to false.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;QDialog.html#default&quot;&gt;default&lt;/tt&gt;&lt;/a&gt; property for details of how &lt;a href=&quot;QDialog.html#default&quot;&gt;default&lt;/tt&gt;&lt;/a&gt; and auto-default interact.&lt;/p&gt;

@see &lt;a href=&quot;QPushButton.html#setAutoDefault(boolean)&quot;&gt;&lt;tt&gt;setAutoDefault&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isDefault()" doc="/**
&lt;p&gt;Returns whether the push button is the default button.&lt;/p&gt;
&lt;p&gt;Default and autodefault buttons decide what happens when the user presses enter in a dialog.&lt;/p&gt;
&lt;p&gt;A button with this property set to true (i.e&amp;#x2e;, the dialog's &lt;i&gt;default&lt;/i&gt; button,) will automatically be pressed when the user presses enter, with one exception: if an &lt;tt&gt;autoDefault&lt;/tt&gt; button currently has focus, the &lt;a href=&quot;QPushButton.html#autoDefault()&quot;&gt;&lt;tt&gt;autoDefault&lt;/tt&gt;&lt;/a&gt; button is pressed. When the dialog has &lt;a href=&quot;QPushButton.html#autoDefault()&quot;&gt;&lt;tt&gt;autoDefault&lt;/tt&gt;&lt;/a&gt; buttons but no default button, pressing enter will press either the &lt;a href=&quot;QPushButton.html#autoDefault()&quot;&gt;&lt;tt&gt;autoDefault&lt;/tt&gt;&lt;/a&gt; button that currently has focus, or if no button has focus, the next &lt;a href=&quot;QPushButton.html#autoDefault()&quot;&gt;&lt;tt&gt;autoDefault&lt;/tt&gt;&lt;/a&gt; button in the focus chain.&lt;/p&gt;
&lt;p&gt;In a dialog, only one push button at a time can be the default button. This button is then displayed with an additional frame (depending on the GUI style).&lt;/p&gt;
&lt;p&gt;The default button behavior is provided only in dialogs. Buttons can always be clicked from the keyboard by pressing Spacebar when the button has focus.&lt;/p&gt;
&lt;p&gt;If the default property is set to false on the current default button while the dialog is visible, a new default will automatically be assigned the next time a pushbutton in the dialog receives focus.&lt;/p&gt;
&lt;p&gt;This property's default is false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isFlat()" doc="/**
&lt;p&gt;Returns whether the button border is raised.&lt;/p&gt;
&lt;p&gt;This property's default is false. If this property is set, most styles will not paint the button background unless the button is being pressed. &lt;a href=&quot;QWidget.html#setAutoFillBackground(boolean)&quot;&gt;&lt;tt&gt;setAutoFillBackground&lt;/tt&gt;&lt;/a&gt; can be used to ensure that the background is filled using the QPalette::Button brush.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QMenu menu()" doc="/**
&lt;p&gt;Returns the button's associated popup menu or 0 if no popup menu has been set.&lt;/p&gt;

@see &lt;a href=&quot;QPushButton.html#setMenu(com.trolltech.qt.gui.QMenu)&quot;&gt;&lt;tt&gt;setMenu&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAutoDefault(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the push button is an auto default button to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this property is set to true then the push button is an auto default button.&lt;/p&gt;
&lt;p&gt;In some GUI styles a default button is drawn with an extra frame around it, up to 3 pixels or more. Qt automatically keeps this space free around auto-default buttons, i.e&amp;#x2e; auto-default buttons may have a slightly larger size hint.&lt;/p&gt;
&lt;p&gt;This property's default is true for buttons that have a &lt;a href=&quot;QDialog.html&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt; parent; otherwise it defaults to false.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;QDialog.html#default&quot;&gt;default&lt;/tt&gt;&lt;/a&gt; property for details of how &lt;a href=&quot;QDialog.html#default&quot;&gt;default&lt;/tt&gt;&lt;/a&gt; and auto-default interact.&lt;/p&gt;

@see &lt;a href=&quot;QPushButton.html#autoDefault()&quot;&gt;&lt;tt&gt;autoDefault&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDefault(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the push button is the default button to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Default and autodefault buttons decide what happens when the user presses enter in a dialog.&lt;/p&gt;
&lt;p&gt;A button with this property set to true (i.e&amp;#x2e;, the dialog's &lt;i&gt;default&lt;/i&gt; button,) will automatically be pressed when the user presses enter, with one exception: if an &lt;tt&gt;autoDefault&lt;/tt&gt; button currently has focus, the &lt;a href=&quot;QPushButton.html#autoDefault()&quot;&gt;&lt;tt&gt;autoDefault&lt;/tt&gt;&lt;/a&gt; button is pressed. When the dialog has &lt;a href=&quot;QPushButton.html#autoDefault()&quot;&gt;&lt;tt&gt;autoDefault&lt;/tt&gt;&lt;/a&gt; buttons but no default button, pressing enter will press either the &lt;a href=&quot;QPushButton.html#autoDefault()&quot;&gt;&lt;tt&gt;autoDefault&lt;/tt&gt;&lt;/a&gt; button that currently has focus, or if no button has focus, the next &lt;a href=&quot;QPushButton.html#autoDefault()&quot;&gt;&lt;tt&gt;autoDefault&lt;/tt&gt;&lt;/a&gt; button in the focus chain.&lt;/p&gt;
&lt;p&gt;In a dialog, only one push button at a time can be the default button. This button is then displayed with an additional frame (depending on the GUI style).&lt;/p&gt;
&lt;p&gt;The default button behavior is provided only in dialogs. Buttons can always be clicked from the keyboard by pressing Spacebar when the button has focus.&lt;/p&gt;
&lt;p&gt;If the default property is set to false on the current default button while the dialog is visible, a new default will automatically be assigned the next time a pushbutton in the dialog receives focus.&lt;/p&gt;
&lt;p&gt;This property's default is false.&lt;/p&gt;

@see &lt;a href=&quot;QPushButton.html#isDefault()&quot;&gt;&lt;tt&gt;isDefault&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFlat(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the button border is raised to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property's default is false. If this property is set, most styles will not paint the button background unless the button is being pressed. &lt;a href=&quot;QWidget.html#setAutoFillBackground(boolean)&quot;&gt;&lt;tt&gt;setAutoFillBackground&lt;/tt&gt;&lt;/a&gt; can be used to ensure that the background is filled using the QPalette::Button brush.&lt;/p&gt;

@see &lt;a href=&quot;QPushButton.html#isFlat()&quot;&gt;&lt;tt&gt;isFlat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMenu(com.trolltech.qt.gui.QMenu menu)" doc="/**
&lt;p&gt;Associates the popup menu &lt;tt&gt;menu&lt;/tt&gt; with this push button. This turns the button into a menu button, which in some styles will produce a small triangle to the right of the button's text.&lt;/p&gt;
&lt;p&gt;Ownership of the menu is &lt;i&gt;not&lt;/i&gt; transferred to the push button.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/plastique-pushbutton-menu.png&quot; alt=&quot;Screenshot of a Plastique style push button with popup menu.&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/cleanlooks-pushbutton-menu.png&quot; alt=&quot;Screenshot of a Cleanlooks style push button with popup menu.&quot; /&gt;&lt;/td&gt;&lt;td&gt;Push buttons with popup menus shown in the &lt;a href=&quot;%2E%2E/gallery-plastique.html&quot;&gt;Plastique widget style&lt;/tt&gt;&lt;/a&gt; (left) and &lt;a href=&quot;%2E%2E/gallery-cleanlooks.html&quot;&gt;Cleanlooks widget style&lt;/tt&gt;&lt;/a&gt; (right).&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPushButton.html#menu()&quot;&gt;&lt;tt&gt;menu&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void showMenu()" doc="/**
&lt;p&gt;Shows (pops up) the associated popup menu. If there is no such menu, this function does nothing. This function does not return until the popup menu has been closed by the user.&lt;/p&gt;
 */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent e)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void focusInEvent(com.trolltech.qt.gui.QFocusEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void focusOutEvent(com.trolltech.qt.gui.QFocusEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void keyPressEvent(com.trolltech.qt.gui.QKeyEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize minimumSizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
</class>