Overview | Package | Class | Tree | Deprecated | Index | Help
Qt Jambi Home |
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.gui
Class QStyleOptionComboBox

    java.lang.Object
      com.trolltech.qt.QSignalEmitter
          com.trolltech.qt.QtJambiObject
              com.trolltech.qt.gui.QStyleOption
                  com.trolltech.qt.gui.QStyleOptionComplex
                      com.trolltech.qt.gui.QStyleOptionComboBox

All Implemented Interfaces:
  QtJambiInterface

    public class QStyleOptionComboBox

extends QStyleOptionComplex

The `QStyleOptionComboBox` class is used to describe the parameter for drawing a combobox.

`QStyleOptionButton` contains all the information that `QStyle` functions need to draw `QComboBox`.

For performance reasons, the access to the member variables is direct (i.e., using the `.` or `->` operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.

For an example demonstrating how style options can be used, see the Styles example.

See Also:
  `QStyleOption`, `QStyleOptionComplex`, `QComboBox`

Nested Class Summary
`static class` | `QStyleOptionComboBox.StyleOptionType` This enum is used to hold information about the type of the style option, and is defined for each `QStyleOption` subclass.
`static class` | `QStyleOptionComboBox.StyleOptionVersion` This enum is used to hold information about the version of the style option, and is defined for each `QStyleOption` subclass.

Nested classes/interfaces inherited from class com.trolltech.qt.gui.QStyleOption
`QStyleOption.OptionType`

Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
`QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>`

Constructor Summary
`` | `QStyleOptionComboBox()` Creates a `QStyleOptionComboBox`, initializing the members variables to their default values.
`protected` | `QStyleOptionComboBox(int version)`
`` | `QStyleOptionComboBox(QStyleOptionComboBox other)` Constructs a copy of the `other` style option.

Method Summary
`QIcon` | `currentIcon()` Returns the icon for the current item of the combo box.
`java.lang.String` | `currentText()` Returns the text for the current item of the combo box.
`boolean` | `editable()` Returns whether or not the combobox is editable or not.
`boolean` | `frame()` Returns whether the combo box has a frame.
`static QStyleOptionComboBox` | `fromNativePointer(QNativePointer nativePointer)` This function returns the QStyleOptionComboBox instance pointed to by nativePointer
`QSize` | `iconSize()` Returns the icon size for the current item of the combo box.
`static QNativePointer` | `nativePointerArray(QStyleOptionComboBox[] array)` This function returns a QNativePointer that is pointing to the specified QStyleOptionComboBox array.
`QRect` | `popupRect()` Returns the popup rectangle for the combobox.
`void` | `setCurrentIcon(QIcon currentIcon)` Sets the icon for the current item of the combo box to `currentIcon`.
`void` | `setCurrentText(java.lang.String currentText)` Sets the text for the current item of the combo box to `currentText`.
`void` | `setEditable(boolean editable)` Sets whether or not the combobox is editable or not to `editable`.
`void` | `setFrame(boolean frame)` Sets whether the combo box has a frame to `frame`.
`void` | `setIconSize(QSize iconSize)` Sets the icon size for the current item of the combo box to `iconSize`.
`void` | `setPopupRect(QRect popupRect)` Sets the popup rectangle for the combobox to `popupRect`.

Methods inherited from class com.trolltech.qt.gui.QStyleOptionComplex
`activeSubControls, nativePointerArray, setActiveSubControls, setSubControls, subControls`

Methods inherited from class com.trolltech.qt.gui.QStyleOption
`direction, fontMetrics, initFrom, nativePointerArray, palette, rect, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setType, setVersion, state, type, version`

Methods inherited from class com.trolltech.qt.QtJambiObject
`dispose, disposed, finalize, reassignNativeResources, tr, tr, tr`

Methods inherited from class com.trolltech.qt.QSignalEmitter
`blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread`

Methods inherited from class java.lang.Object
`clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface com.trolltech.qt.QtJambiInterface
`disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership`

Constructor Detail

### QStyleOptionComboBox

    public QStyleOptionComboBox(QStyleOptionComboBox other)

  Constructs a copy of the `other` style option.

### QStyleOptionComboBox

    public QStyleOptionComboBox()

  Creates a `QStyleOptionComboBox`, initializing the members variables to their default values.

### QStyleOptionComboBox

    protected QStyleOptionComboBox(int version)

Method Detail

### setCurrentText

    public final void setCurrentText(java.lang.String currentText)

  Sets the text for the current item of the combo box to `currentText`.

  The default value is an empty string.

  See Also:
    `currentText`

### currentText

    public final java.lang.String currentText()

  Returns the text for the current item of the combo box.

  The default value is an empty string.

  See Also:
    `setCurrentText`

### setIconSize

    public final void setIconSize(QSize iconSize)

  Sets the icon size for the current item of the combo box to `iconSize`.

  The default value is `QSize`(-1, -1), i.e. an invalid size.

  See Also:
    `iconSize`

### iconSize

    public final QSize iconSize()

  Returns the icon size for the current item of the combo box.

  The default value is `QSize`(-1, -1), i.e. an invalid size.

  See Also:
    `setIconSize`

### setEditable

    public final void setEditable(boolean editable)

  Sets whether or not the combobox is editable or not to `editable`.

  the default value is false

  See Also:
    `editable`, `QComboBox::isEditable`

### editable

    public final boolean editable()

  Returns whether or not the combobox is editable or not.

  the default value is false

  See Also:
    `setEditable`, `QComboBox::isEditable`

### setFrame

    public final void setFrame(boolean frame)

  Sets whether the combo box has a frame to `frame`.

  The default value is true.

  See Also:
    `frame`

### frame

    public final boolean frame()

  Returns whether the combo box has a frame.

  The default value is true.

  See Also:
    `setFrame`

### setPopupRect

    public final void setPopupRect(QRect popupRect)

  Sets the popup rectangle for the combobox to `popupRect`.

  The default value is a null rectangle, i.e. a rectangle with both the width and the height set to 0.

  This variable is currently unused. You can safely ignore it.

  See Also:
    `popupRect`, `QStyle::SC_ComboBoxListBoxPopup`

### popupRect

    public final QRect popupRect()

  Returns the popup rectangle for the combobox.

  The default value is a null rectangle, i.e. a rectangle with both the width and the height set to 0.

  This variable is currently unused. You can safely ignore it.

  See Also:
    `setPopupRect`, `QStyle::SC_ComboBoxListBoxPopup`

### setCurrentIcon

    public final void setCurrentIcon(QIcon currentIcon)

  Sets the icon for the current item of the combo box to `currentIcon`.

  The default value is an empty icon, i.e. an icon with neither a pixmap nor a filename.

  See Also:
    `currentIcon`

### currentIcon

    public final QIcon currentIcon()

  Returns the icon for the current item of the combo box.

  The default value is an empty icon, i.e. an icon with neither a pixmap nor a filename.

  See Also:
    `setCurrentIcon`

### fromNativePointer

    public static QStyleOptionComboBox fromNativePointer(QNativePointer nativePointer)

  This function returns the QStyleOptionComboBox instance pointed to by nativePointer

  Parameters:
    `nativePointer` - the QNativePointer of which object should be returned.

### nativePointerArray

    public static QNativePointer nativePointerArray(QStyleOptionComboBox[] array)

  This function returns a QNativePointer that is pointing to the specified QStyleOptionComboBox array.

  Parameters:
    `array` - the array that the returned pointer will point to.
  Returns:
    a QNativePointer that is pointing to the specified array.

Overview | Package | Class | Tree | Deprecated | Index | Help
Qt Jambi Home |
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD