<class name="QStyleOptionComboBox" doc="/** <p>The <a href="QStyleOptionComboBox.html#QStyleOptionComboBox(int)"><tt>QStyleOptionComboBox</tt></a> class is used to describe the parameter for drawing a combobox.</p> <p><a href="QStyleOptionButton.html"><tt>QStyleOptionButton</tt></a> contains all the information that <a href="QStyle.html"><tt>QStyle</tt></a> functions need to draw <a href="QComboBox.html"><tt>QComboBox</tt></a>.</p> <p>For performance reasons, the access to the member variables is direct (i.e&#x2e;, using the <tt>.</tt> or <tt>-&gt;</tt> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.</p> <p>For an example demonstrating how style options can be used, see the Styles</tt> example.</p> @see <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> @see <a href="QStyleOptionComplex.html#QStyleOptionComplex(int, int)"><tt>QStyleOptionComplex</tt></a> @see <a href="QComboBox.html"><tt>QComboBox</tt></a> */"> <method name="public QStyleOptionComboBox(com.trolltech.qt.gui.QStyleOptionComboBox other)" doc="/** <p>Constructs a copy of the <tt>other</tt> style option.</p> */"/> <method name="public QStyleOptionComboBox()" doc="/** <p>Creates a <a href="QStyleOptionComboBox.html#QStyleOptionComboBox(int)"><tt>QStyleOptionComboBox</tt></a>, initializing the members variables to their default values.</p> */"/> <method name="protected QStyleOptionComboBox(int version)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <enum name="StyleOptionVersion" doc="/** <p>This enum is used to hold information about the version of the style option, and is defined for each <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass.</p> <p>The version is used by <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.</p> @see <a href="QStyleOptionComboBox.html#StyleOptionType-enum"><tt>StyleOptionType</tt></a> */"> <enum-value name="Version" doc="/** <p>1</p> */"/> </enum> <enum name="StyleOptionType" doc="/** <p>This enum is used to hold information about the type of the style option, and is defined for each <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass.</p> <p>The type is used internally by <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a>, its subclasses, and qstyleoption_cast() to determine the type of style option. In general you do not need to worry about this unless you want to create your own <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass and your own styles.</p> @see <a href="QStyleOptionComboBox.html#StyleOptionVersion-enum"><tt>StyleOptionVersion</tt></a> */"> <enum-value name="Type" doc="/** <p>The type of style option provided (<a href="QStyleOption.html#OptionType-enum"><tt>SO_ComboBox</tt></a> for this class).</p> */"/> </enum> <method name="public final java.lang.String currentText()" doc="/** <p>Returns the text for the current item of the combo box.</p> <p>The default value is an empty string.</p> @see <a href="QStyleOptionComboBox.html#setCurrentText(java.lang.String)"><tt>setCurrentText</tt></a> */"/> <method name="public final void setCurrentText(java.lang.String currentText)" doc="/** <p>Sets the text for the current item of the combo box to <tt>currentText</tt>.</p> <p>The default value is an empty string.</p> @see <a href="QStyleOptionComboBox.html#currentText()"><tt>currentText</tt></a> */"/> <method name="public final com.trolltech.qt.core.QSize iconSize()" doc="/** <p>Returns the icon size for the current item of the combo box.</p> <p>The default value is <a href="%2E%2E/core/QSize.html"><tt>QSize</tt></a>(-1, -1), i.e&#x2e; an invalid size.</p> @see <a href="QStyleOptionComboBox.html#setIconSize(com.trolltech.qt.core.QSize)"><tt>setIconSize</tt></a> */"/> <method name="public final void setIconSize(com.trolltech.qt.core.QSize iconSize)" doc="/** <p>Sets the icon size for the current item of the combo box to <tt>iconSize</tt>.</p> <p>The default value is <a href="%2E%2E/core/QSize.html"><tt>QSize</tt></a>(-1, -1), i.e&#x2e; an invalid size.</p> @see <a href="QStyleOptionComboBox.html#iconSize()"><tt>iconSize</tt></a> */"/> <method name="public final boolean editable()" doc="/** <p>Returns whether or not the combobox is editable or not.</p> <p>the default value is false</p> @see <a href="QStyleOptionComboBox.html#setEditable(boolean)"><tt>setEditable</tt></a> @see <tt>QComboBox::isEditable</tt> */"/> <method name="public final void setEditable(boolean editable)" doc="/** <p>Sets whether or not the combobox is editable or not to <tt>editable</tt>.</p> <p>the default value is false</p> @see <a href="QStyleOptionComboBox.html#editable()"><tt>editable</tt></a> @see <tt>QComboBox::isEditable</tt> */"/> <method name="public final boolean frame()" doc="/** <p>Returns whether the combo box has a frame.</p> <p>The default value is true.</p> @see <a href="QStyleOptionComboBox.html#setFrame(boolean)"><tt>setFrame</tt></a> */"/> <method name="public final void setFrame(boolean frame)" doc="/** <p>Sets whether the combo box has a frame to <tt>frame</tt>.</p> <p>The default value is true.</p> @see <a href="QStyleOptionComboBox.html#frame()"><tt>frame</tt></a> */"/> <method name="public final com.trolltech.qt.core.QRect popupRect()" doc="/** <p>Returns the popup rectangle for the combobox.</p> <p>The default value is a null rectangle, i.e&#x2e; a rectangle with both the width and the height set to 0.</p> <p>This variable is currently unused. You can safely ignore it.</p> @see <a href="QStyleOptionComboBox.html#setPopupRect(com.trolltech.qt.core.QRect)"><tt>setPopupRect</tt></a> @see <tt>QStyle::SC_ComboBoxListBoxPopup</tt> */"/> <method name="public final void setPopupRect(com.trolltech.qt.core.QRect popupRect)" doc="/** <p>Sets the popup rectangle for the combobox to <tt>popupRect</tt>.</p> <p>The default value is a null rectangle, i.e&#x2e; a rectangle with both the width and the height set to 0.</p> <p>This variable is currently unused. You can safely ignore it.</p> @see <a href="QStyleOptionComboBox.html#popupRect()"><tt>popupRect</tt></a> @see <tt>QStyle::SC_ComboBoxListBoxPopup</tt> */"/> <method name="public final com.trolltech.qt.gui.QIcon currentIcon()" doc="/** <p>Returns the icon for the current item of the combo box.</p> <p>The default value is an empty icon, i.e&#x2e; an icon with neither a pixmap nor a filename.</p> @see <a href="QStyleOptionComboBox.html#setCurrentIcon(com.trolltech.qt.gui.QIcon)"><tt>setCurrentIcon</tt></a> */"/> <method name="public final void setCurrentIcon(com.trolltech.qt.gui.QIcon currentIcon)" doc="/** <p>Sets the icon for the current item of the combo box to <tt>currentIcon</tt>.</p> <p>The default value is an empty icon, i.e&#x2e; an icon with neither a pixmap nor a filename.</p> @see <a href="QStyleOptionComboBox.html#currentIcon()"><tt>currentIcon</tt></a> */"/> </class>