org.kde.koala

Class KComboBox

public class KComboBox extends QComboBox implements KCompletionBaseInterface

A combined button, line-edit and a popup list widget.
  • Detail
  • This widget inherits from QComboBox and implements the following additional functionalities: a completion object that provides both automatic and manual text completion as well as text rotation features, configurable key-bindings to activate these features, and a popup-menu item that can be used to allow the user to change the text completion mode on the fly. To support these new features KComboBox emits a few additional signals such as completion( String ) and textRotation( KeyBindgingType ). The completion signal can be connected to a slot that will assist the user in filling out the remaining text while the rotation signal can be used to traverse through all possible matches whenever text completion results in multiple matches. Additionally, a returnPressed() and a returnPressed( String ) signals are emitted when the user presses the Enter/Return key. KCombobox by default creates a completion object when you invoke the completionObject( boolean ) member function for the first time or explicitly use setCompletionObject( KCompletion, boolean ) to assign your own completion object. Additionally, to make this widget more functional, KComboBox will by default handle text rotation and completion events internally whenever a completion object is created through either one of the methods mentioned above. If you do not need this functionality, simply use KCompletionBase.setHandleSignals(boolean) or alternatively set the booleanean parameter in the setCompletionObject call to false. Beware: The completion object can be deleted on you, especially if a call such as setEditable(false) is made. Store the pointer at your own risk, and consider using QGuardedPtr. The default key-bindings for completion and rotation is determined from the global settings in KStdAccel. These values, however, can be overridden locally by invoking KCompletionBase.setKeyBinding(). The values can easily be reverted back to the default setting, by simply calling useGlobalSettings(). An alternate method would be to default individual key-bindings by usning setKeyBinding() with the default second argument. A non-editable combobox only has one completion mode, CompletionAuto. Unlike an editable combobox the CompletionAuto mode, works by matching any typed key with the first letter of entries in the combobox. Please note that if you call setEditable( false ) to change an editable combobox to a non-editable one, the text completion object associated with the combobox will no longer exist unless you created the completion object yourself and assigned it to this widget or you called setAutoDeleteCompletionObject( false ). In other words do not do the following:
     KComboBox combo = new KCompletionBox(true, this, "mywidget");
     KCompletion comp = combo.completionObject();
     combo.setEditable( false );
     comp.clear(); // CRASH: completion object does not exist anymore.
     
    A read-only KComboBox will have the same background color as a disabled KComboBox, but its foreground color will be the one used for the read-write mode. This differs from QComboBox's implementation and is done to give visual distinction between the three different modes: disabled, read-only, and read-write.
  • Usage
  • To enable the basic completion feature:
     KComboBox combo = new KComboBox( true, this, "mywidget" );
     KCompletion comp = combo.completionObject();
     // Connect to the return pressed signal - optional
     connect(combo,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)"));
     // Provide the to be completed strings. Note that those are separate from the combo's
     // contents.
     comp.insertItems( someArrayList );
     
    To use your own completion object:
     KComboBox combo = new KComboBox( this,"mywidget" );
     KURLCompletion comp = new KURLCompletion();
     combo.setCompletionObject( comp );
     // Connect to the return pressed signal - optional
     connect(combo,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)"));
     
    Note that you have to either delete the allocated completion object when you don't need it anymore, or call setAutoDeleteCompletionObject( true ); Miscellaneous function calls:
     // Tell the widget not to handle completion and rotation
     combo.setHandleSignals( false );
     // Set your own completion key for manual completions.
     combo.setKeyBinding( KCompletionBase.TextCompletion, Qt.End );
     // Hide the context (popup) menu
     combo.setContextMenuEnabled( false );
     
    See KComboBoxSignals for signals emitted by KComboBox

    Author: Dawit Alemayehu

    UNKNOWN: An enhanced combo box.

    Constructor Summary
    protected KComboBox(Class dummy)
    KComboBox(QWidget parent, String name)
    Constructs a read-only or rather select-only combo box with a parent object and a name.
    KComboBox(QWidget parent)
    KComboBox()
    KComboBox(boolean rw, QWidget parent, String name)
    Constructs a "read-write" or "read-only" combo box depending on the value of the first argument( rw ) with a parent, a name.
    KComboBox(boolean rw, QWidget parent)
    KComboBox(boolean rw)
    Method Summary
    booleanautoCompletion()
    Re-implemented from QComboBox.
    voidchangeURL(KURL url, int index)
    Replaces the item at position index with url. KURL.prettyURL() is used so that the url is properly decoded for displaying.
    voidchangeURL(QPixmap pixmap, KURL url, int index)
    Replaces the item at position index with url and pixmap pixmap. KURL.prettyURL() is used so that the url is properly decoded for displaying.
    StringclassName()
    KCompletionBoxcompletionBox(boolean create)
    KCompletionBoxcompletionBox()
    intcompletionMode()
    Returns the current completion mode.
    KCompletioncompletionObject(boolean hsig)
    Returns a pointer to the current completion object.
    KCompletioncompletionObject()
    KCompletioncompObj()
    Returns a pointer to the completion object.
    booleancontains(String text)
    Convenience method which iterates over all items and checks if any of them is equal to text. If text is an empty string, false is returned.
    protected voidcreate(long arg1, boolean initializeWindow, boolean destroyOldWindow)
    Reimplemented for internal reasons, the API is not affected.
    protected voidcreate(long arg1, boolean initializeWindow)
    protected voidcreate(long arg1)
    protected voidcreate()
    intcursorPosition()
    Returns the current cursor position.
    protected KCompletionBaseInterfacedelegate()
    Returns the delegation object.
    voiddispose()
    Delete the wrapped C++ instance ahead of finalize()
    booleanemitSignals()
    Returns true if the object emits the signals.
    booleaneventFilter(QObject arg1, QEvent arg2)
    Re-implemented for internal reasons.
    protected voidfinalize()
    Deletes the wrapped C++ instance
    KShortcutgetKeyBinding(int item)
    Returns the key-binding used for the specified item.
    booleanhandleSignals()
    Returns true if the object handles the signals.
    voidinsertURL(KURL url, int index)
    Inserts url at position index into the combobox.
    voidinsertURL(KURL url)
    voidinsertURL(QPixmap pixmap, KURL url, int index)
    Inserts url with the pixmap &p pixmap at position index into the combobox.
    voidinsertURL(QPixmap pixmap, KURL url)
    booleanisCompletionObjectAutoDeleted()
    Returns true if the completion object is deleted upon this widget's destruction.
    booleanisContextMenuEnabled()
    Returns true when the context menu is enabled.
    booleanisDisposed()
    Has the wrapped C++ instance been deleted?
    booleanisURLDropsEnabled()
    Returns true when decoded URL drops are enabled
    protected voidmakeCompletion(String arg1)
    Completes text according to the completion mode.
    QMetaObjectmetaObject()
    voidrotateText(int type)
    Iterates through all possible matches of the completed text or the history list.
    voidsetAutoCompletion(boolean autocomplete)
    Re-implemented from QComboBox.
    voidsetAutoDeleteCompletionObject(boolean autoDelete)
    Sets the completion object when this widget's destructor is called.
    voidsetCompletedItems(String[] items)
    Sets items into the completion-box if completionMode() is CompletionPopup.
    voidsetCompletedText(String arg1)
    Sets the completed text in the line-edit appropriately.
    protected voidsetCompletedText(String arg1, boolean arg2)
    voidsetCompletionMode(int mode)
    Sets the type of completion to be used.
    voidsetCompletionObject(KCompletion compObj, boolean hsig)
    Sets up the completion object to be used.
    voidsetCompletionObject(KCompletion compObj)
    voidsetContextMenuEnabled(boolean showMenu)
    Enables or disable the popup (context) menu.
    voidsetCurrentItem(String item, boolean insert, int index)
    Selects the first item that matches item. If there is no such item, it is inserted at position index if insert is true.
    voidsetCurrentItem(String item, boolean insert)
    voidsetCurrentItem(String item)
    voidsetCurrentItem(int index)
    Simply calls QComboBox' implementation.
    protected voidsetDelegate(KCompletionBaseInterface delegate)
    Sets or removes the delegation object.
    voidsetEditURL(KURL url)
    Sets url into the edit field of the combobox.
    voidsetEnableSignals(boolean enable)
    Sets the widget's ability to emit text completion and rotation signals.
    voidsetHandleSignals(boolean handle)
    Enables this object to handle completion and rotation events internally.
    booleansetKeyBinding(int item, KShortcut key)
    Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list.
    voidsetLineEdit(QLineEdit arg1)
    Re-implemented for internal reasons.
    voidsetTrapReturnKey(boolean trap)
    By default, KComboBox recognizes Key_Return and Key_Enter and emits the returnPressed() signals, but it also lets the event pass, for example causing a dialog's default-button to be called.
    voidsetURLDropsEnabled(boolean enable)
    Enables/Disables handling of URL drops.
    booleantrapReturnKey()
    voiduseGlobalKeyBindings()
    Sets this object to use global values for key-bindings.
    protected voidwheelEvent(QWheelEvent ev)

    Constructor Detail

    KComboBox

    protected KComboBox(Class dummy)

    KComboBox

    public KComboBox(QWidget parent, String name)
    Constructs a read-only or rather select-only combo box with a parent object and a name.

    Parameters: parent The parent object of this widget name The name of this widget

    UNKNOWN: Constructs a read-only or rather select-only combo box with a parent object and a name.

    KComboBox

    public KComboBox(QWidget parent)

    KComboBox

    public KComboBox()

    KComboBox

    public KComboBox(boolean rw, QWidget parent, String name)
    Constructs a "read-write" or "read-only" combo box depending on the value of the first argument( rw ) with a parent, a name.

    Parameters: rw When true, widget will be editable. parent The parent object of this widget. name The name of this widget.

    UNKNOWN: Constructs a "read-write" or "read-only" combo box depending on the value of the first argument( rw ) with a parent, a name.

    KComboBox

    public KComboBox(boolean rw, QWidget parent)

    KComboBox

    public KComboBox(boolean rw)

    Method Detail

    autoCompletion

    public boolean autoCompletion()
    Re-implemented from QComboBox. Returns true if the current completion mode is set to automatic. See its more comprehensive replacement completionMode().

    Returns: true when completion mode is automatic.

    UNKNOWN: Re-implemented from QComboBox.

    changeURL

    public void changeURL(KURL url, int index)
    Replaces the item at position index with url. KURL.prettyURL() is used so that the url is properly decoded for displaying.

    UNKNOWN: Replaces the item at position index with url.

    changeURL

    public void changeURL(QPixmap pixmap, KURL url, int index)
    Replaces the item at position index with url and pixmap pixmap. KURL.prettyURL() is used so that the url is properly decoded for displaying.

    UNKNOWN: Replaces the item at position index with url and pixmap pixmap.

    className

    public String className()

    completionBox

    public KCompletionBox completionBox(boolean create)

    Parameters: create Set this to false if you don't want the box to be created i.e. to test if it is available.

    Returns: the completion-box, that is used in completion mode KGlobalSettings.CompletionPopup and KGlobalSettings.CompletionPopupAuto. This method will create a completion-box by calling KLineEdit.completionBox, if none is there, yet.

    UNKNOWN:

    completionBox

    public KCompletionBox completionBox()

    completionMode

    public int completionMode()
    Returns the current completion mode. The return values are of type KGlobalSettings.Completion. See setCompletionMode() for details.

    Returns: the completion mode.

    UNKNOWN: Returns the current completion mode.

    completionObject

    public KCompletion completionObject(boolean hsig)
    Returns a pointer to the current completion object. If the completion object does not exist, it is automatically created and by default handles all the completion signals internally unless hsig is set to false. It is also automatically destroyed when the destructor is called. You can change this default behavior using the KComboBox and KComboBox member functions. See also KComboBox.

    Parameters: hsig if true, handles completion signals internally.

    Returns: a pointer the completion object.

    UNKNOWN: Returns a pointer to the current completion object.

    completionObject

    public KCompletion completionObject()

    compObj

    public KCompletion compObj()
    Returns a pointer to the completion object. This method is only different from completionObject() in that it does not create a new KCompletion object even if the internal pointer is NULL. Use this method to get the pointer to a completion object when inheriting so that you won't inadvertently create it!!

    Returns: the completion object or NULL if one does not exist.

    UNKNOWN: Returns a pointer to the completion object.

    contains

    public boolean contains(String text)
    Convenience method which iterates over all items and checks if any of them is equal to text. If text is an empty string, false is returned.

    Returns: true if an item with the string text is in the combobox.

    UNKNOWN: Convenience method which iterates over all items and checks if any of them is equal to text.

    create

    protected void create(long arg1, boolean initializeWindow, boolean destroyOldWindow)
    Reimplemented for internal reasons, the API is not affected.

    UNKNOWN: Reimplemented for internal reasons, the API is not affected.

    create

    protected void create(long arg1, boolean initializeWindow)

    create

    protected void create(long arg1)

    create

    protected void create()

    cursorPosition

    public int cursorPosition()
    Returns the current cursor position. This method always returns a -1 if the combo-box is not editable (read-write).

    Returns: Current cursor position.

    UNKNOWN: Returns the current cursor position.

    delegate

    protected KCompletionBaseInterface delegate()
    Returns the delegation object.

    Returns: the delegation object, or 0 if there is none

    See Also: KComboBox

    UNKNOWN: Returns the delegation object.

    dispose

    public void dispose()
    Delete the wrapped C++ instance ahead of finalize()

    emitSignals

    public boolean emitSignals()
    Returns true if the object emits the signals.

    Returns: true if signals are emitted

    UNKNOWN: Returns true if the object emits the signals.

    eventFilter

    public boolean eventFilter(QObject arg1, QEvent arg2)
    Re-implemented for internal reasons. API not affected.

    UNKNOWN: Re-implemented for internal reasons.

    finalize

    protected void finalize()
    Deletes the wrapped C++ instance

    getKeyBinding

    public KShortcut getKeyBinding(int item)
    Returns the key-binding used for the specified item. This methods returns the key-binding used to activate the feature feature given by item. If the binding contains modifier key(s), the SUM of the modifier key and the actual key code are returned.

    Parameters: item the item to check

    Returns: the key-binding used for the feature given by item.

    See Also: KComboBox

    UNKNOWN: Returns the key-binding used for the specified item.

    handleSignals

    public boolean handleSignals()
    Returns true if the object handles the signals.

    Returns: true if this signals are handled internally.

    UNKNOWN: Returns true if the object handles the signals.

    insertURL

    public void insertURL(KURL url, int index)
    Inserts url at position index into the combobox. The item will be appended if index is negative. KURL.prettyURL() is used so that the url is properly decoded for displaying.

    UNKNOWN: Inserts url at position index into the combobox.

    insertURL

    public void insertURL(KURL url)

    insertURL

    public void insertURL(QPixmap pixmap, KURL url, int index)
    Inserts url with the pixmap &p pixmap at position index into the combobox. The item will be appended if index is negative. KURL.prettyURL() is used so that the url is properly decoded for displaying.

    UNKNOWN: Inserts url with the pixmap &p pixmap at position index into the combobox.

    insertURL

    public void insertURL(QPixmap pixmap, KURL url)

    isCompletionObjectAutoDeleted

    public boolean isCompletionObjectAutoDeleted()
    Returns true if the completion object is deleted upon this widget's destruction. See setCompletionObject() and enableCompletion() for details.

    Returns: true if the completion object will be deleted automatically

    UNKNOWN: Returns true if the completion object is deleted upon this widget's destruction.

    isContextMenuEnabled

    public boolean isContextMenuEnabled()
    Returns true when the context menu is enabled.

    UNKNOWN: Returns true when the context menu is enabled.

    isDisposed

    public boolean isDisposed()
    Has the wrapped C++ instance been deleted?

    isURLDropsEnabled

    public boolean isURLDropsEnabled()
    Returns true when decoded URL drops are enabled

    UNKNOWN: Returns true when decoded URL drops are enabled

    makeCompletion

    protected void makeCompletion(String arg1)
    Completes text according to the completion mode. Note: this method is not invoked if the completion mode is set to CompletionNone. Also if the mode is set to CompletionShell and multiple matches are found, this method will complete the text to the first match with a beep to inidicate that there are more matches. Then any successive completion key event iterates through the remaining matches. This way the rotation functionality is left to iterate through the list as usual.

    UNKNOWN: Completes text according to the completion mode.

    metaObject

    public QMetaObject metaObject()

    rotateText

    public void rotateText(int type)
    Iterates through all possible matches of the completed text or the history list. Depending on the value of the argument, this function either iterates through the history list of this widget or the all possible matches in whenever multiple matches result from a text completion request. Note that the all-possible-match iteration will not work if there are no previous matches, i.e. no text has been completed and the nix shell history list rotation is only available if the insertion policy for this widget is set either QComobBox.AtTop or QComboBox.AtBottom. For other insertion modes whatever has been typed by the user when the rotation event was initiated will be lost.

    Parameters: type The key-binding invoked.

    UNKNOWN: Iterates through all possible matches of the completed text or the history list.

    setAutoCompletion

    public void setAutoCompletion(boolean autocomplete)
    Re-implemented from QComboBox. If true, the completion mode will be set to automatic. Otherwise, it is defaulted to the global setting. This method has been replaced by the more comprehensive setCompletionMode().

    Parameters: autocomplete Flag to enable/disable automatic completion mode.

    UNKNOWN: Re-implemented from QComboBox.

    setAutoDeleteCompletionObject

    public void setAutoDeleteCompletionObject(boolean autoDelete)
    Sets the completion object when this widget's destructor is called. If the argument is set to true, the completion object is deleted when this widget's destructor is called.

    Parameters: autoDelete if true, delete completion object on destruction.

    UNKNOWN: Sets the completion object when this widget's destructor is called.

    setCompletedItems

    public void setCompletedItems(String[] items)
    Sets items into the completion-box if completionMode() is CompletionPopup. The popup will be shown immediately.

    UNKNOWN: Sets items into the completion-box if completionMode() is CompletionPopup.

    setCompletedText

    public void setCompletedText(String arg1)
    Sets the completed text in the line-edit appropriately. This function is an implementation for KCompletionBase.setCompletedText.

    UNKNOWN: Sets the completed text in the line-edit appropriately.

    setCompletedText

    protected void setCompletedText(String arg1, boolean arg2)

    setCompletionMode

    public void setCompletionMode(int mode)
    Sets the type of completion to be used. The completion modes supported are those defined in KGlobalSettings(). See below.

    Parameters: mode Completion type:

  • CompletionNone: Disables completion feature.
  • CompletionAuto: Attempts to find a match & fills-in the remaining text.
  • CompletionMan: Acts the same as the above except the action has to be manually triggered through pre-defined completion key.
  • CompletionShell: Mimics the completion feature found in typical nix shell environments.
  • CompletionPopup: Shows all available completions at once, in a listbox popping up.
  • @short Sets the type of completion to be used.

    setCompletionObject

    public void setCompletionObject(KCompletion compObj, boolean hsig)
    Sets up the completion object to be used. This method assigns the completion object and sets it up to automatically handle the completion and rotation signals internally. You should use this function if you want to share one completion object among your widgets or need to use a customized completion object. The object assigned through this method is not deleted when this object's destructor is invoked unless you explicitly call KComboBox after calling this method. Be sure to set the boolean argument to false, if you want to handle the completion signals yourself.

    Parameters: compObj a KCompletion() or a derived child object. hsig if true, handles completion signals internally.

    UNKNOWN: Sets up the completion object to be used.

    setCompletionObject

    public void setCompletionObject(KCompletion compObj)

    setContextMenuEnabled

    public void setContextMenuEnabled(boolean showMenu)
    Enables or disable the popup (context) menu. This method only works if this widget is editable, i.e. read-write and allows you to enable/disable the context menu. It does nothing if invoked for a none-editable combo-box. Note that by default the mode changer item is made visiable whenever the context menu is enabled. Use hideModechanger() if you want to hide this item. Also by default, the context menu is created if this widget is editable. Call this function with the argument set to false to disable the popup menu.

    Parameters: showMenu If true, show the context menu.

    UNKNOWN: Enables or disable the popup (context) menu.

    setCurrentItem

    public void setCurrentItem(String item, boolean insert, int index)
    Selects the first item that matches item. If there is no such item, it is inserted at position index if insert is true. Otherwise, no item is selected.

    UNKNOWN: Selects the first item that matches item.

    setCurrentItem

    public void setCurrentItem(String item, boolean insert)

    setCurrentItem

    public void setCurrentItem(String item)

    setCurrentItem

    public void setCurrentItem(int index)
    Simply calls QComboBox' implementation. Only here to not become shadowed.

    UNKNOWN: Simply calls QComboBox' implementation.

    setDelegate

    protected void setDelegate(KCompletionBaseInterface delegate)
    Sets or removes the delegation object. If a delegation object is set, all function calls will be forwarded to the delegation object.

    Parameters: delegate the delegation object, or 0 to remove it

    UNKNOWN: Sets or removes the delegation object.

    setEditURL

    public void setEditURL(KURL url)
    Sets url into the edit field of the combobox. It uses KURL.prettyURL() so that the url is properly decoded for displaying.

    UNKNOWN: Sets url into the edit field of the combobox.

    setEnableSignals

    public void setEnableSignals(boolean enable)
    Sets the widget's ability to emit text completion and rotation signals. Invoking this function with enable set to false will cause the completion & rotation signals not to be emitted. However, unlike setting the completion object to NULL using setCompletionObject, disabling the emition of the signals through this method does not affect the current completion object. There is no need to invoke this function by default. When a completion object is created through completionObject or setCompletionObject, these signals are set to emit automatically. Also note that disabling this signals will not necessarily interfere with the objects ability to handle these events internally. See setHandleSignals.

    Parameters: enable if false, disables the emition of completion & rotation signals.

    UNKNOWN: Sets the widget's ability to emit text completion and rotation signals.

    setHandleSignals

    public void setHandleSignals(boolean handle)
    Enables this object to handle completion and rotation events internally. This function simply assigns a booleanean value that indicates whether it should handle rotation and completion events or not. Note that this does not stop the object from emitting signals when these events occur.

    Parameters: handle if true, handle completion & rotation internally.

    UNKNOWN: Enables this object to handle completion and rotation events internally.

    setKeyBinding

    public boolean setKeyBinding(int item, KShortcut key)
    Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list. When the keys set by this function are pressed, a signal defined by the inheriting widget will be activated. If the default value or 0 is specified by the second parameter, then the key-binding as defined in the global setting should be used. This method returns false value for key is negative or the supplied key-binding conflicts with the ones set for one of the other features. NOTE: To use a modifier key (Shift, Ctrl, Alt) as part of the key-binding simply simply sum up the values of the modifier and the actual key. For example, to use CTRL+E as a key binding for one of the items, you would simply supply "Qt.CtrlButton + Qt.Key_E" as the second argument to this function.

    Parameters: item the feature whose key-binding needs to be set:

  • TextCompletion the manual completion key-binding.
  • PrevCompletionMatch the previous match key for multiple completion.
  • NextCompletionMatch the next match key for for multiple completion.
  • SubstringCompletion the key for substring completion
  • key key-binding used to rotate down in a list.

    Returns: true if key-binding can successfully be set.

    See Also: KComboBox

    UNKNOWN: Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list.

    setLineEdit

    public void setLineEdit(QLineEdit arg1)
    Re-implemented for internal reasons. API remains unaffected. NOTE: Only editable comboboxes can have a line editor. As such any attempt to assign a line-edit to a non-editable combobox will simply be ignored.

    UNKNOWN: Re-implemented for internal reasons.

    setTrapReturnKey

    public void setTrapReturnKey(boolean trap)
    By default, KComboBox recognizes Key_Return and Key_Enter and emits the returnPressed() signals, but it also lets the event pass, for example causing a dialog's default-button to be called. Call this method with trap equal to true to make KComboBox stop these events. The signals will still be emitted of course. Only affects read-writable comboboxes.

    See Also: KComboBox

    UNKNOWN: By default, KComboBox recognizes Key_Return and Key_Enter and emits the returnPressed() signals, but it also lets the event pass, for example causing a dialog's default-button to be called.

    setURLDropsEnabled

    public void setURLDropsEnabled(boolean enable)
    Enables/Disables handling of URL drops. If enabled and the user drops an URL, the decoded URL will be inserted. Otherwise the default behavior of QComboBox is used, which inserts the encoded URL.

    Parameters: enable If true, insert decoded URLs

    UNKNOWN: Enables/Disables handling of URL drops.

    trapReturnKey

    public boolean trapReturnKey()

    Returns: true if keyevents of Key_Return or Key_Enter will be stopped or if they will be propagated.

    See Also: KComboBox

    UNKNOWN:

    useGlobalKeyBindings

    public void useGlobalKeyBindings()
    Sets this object to use global values for key-bindings. This method changes the values of the key bindings for rotation and completion features to the default values provided in KGlobalSettings. NOTE: By default inheriting widgets should uses the global key-bindings so that there will be no need to call this method.

    UNKNOWN: Sets this object to use global values for key-bindings.

    wheelEvent

    protected void wheelEvent(QWheelEvent ev)