KDEUI
kcombobox.h
Go to the documentation of this file.
void returnPressed(const QString &)
Emitted when the user presses the Enter key.
void substringCompletion(const QString &)
Emitted when the shortcut for substring completion is pressed.
KComboBox(QWidget *parent=0)
Constructs a read-only or rather select-only combo box with a parent object and a name.
Definition kcombobox.cpp:57
void changeUrl(int index, const KUrl &url)
Replaces the item at position index with url.
Definition kcombobox.cpp:229
void aboutToShowContextMenu(QMenu *p)
Emitted before the context menu is displayed.
virtual void makeCompletion(const QString &)
Completes text according to the completion mode.
Definition kcombobox.cpp:162
void setCurrentItem(const QString &item, bool insert=false, int index=-1)
Selects the first item that matches item.
Definition kcombobox.cpp:347
void textRotation(KCompletionBase::KeyBindingType)
Emitted when the text rotation key-bindings are pressed.
void setTrapReturnKey(bool trap)
By default, KComboBox recognizes Key_Return and Key_Enter and emits the returnPressed() signals,...
Definition kcombobox.cpp:188
void completionModeChanged(KGlobalSettings::Completion)
Emitted whenever the completion mode is changed by the user through the context menu.
virtual void create(WId=0, bool initializeWindow=true, bool destroyOldWindow=true)
Reimplemented for internal reasons, the API is not affected.
Definition kcombobox.cpp:254
void changeURL(const QPixmap &pixmap, const KUrl &url, int index)
Definition kcombobox.h:191
void insertURL(const KUrl &url, int index=-1)
Deprecated to reflect Qt api changes.
Definition kcombobox.h:185
void setUrlDropsEnabled(bool enable)
Enables/Disables handling of URL drops.
Definition kcombobox.cpp:138
void insertUrl(int index, const KUrl &url)
Inserts url at position index into the combobox.
Definition kcombobox.cpp:219
void insertURL(const QPixmap &pixmap, const KUrl &url, int index=-1)
Definition kcombobox.h:187
virtual void setAutoCompletion(bool autocomplete)
Re-implemented from QComboBox.
Definition kcombobox.cpp:107
void rotateText(KCompletionBase::KeyBindingType type)
Iterates through all possible matches of the completed text or the history list.
Definition kcombobox.cpp:176
virtual void setCompletedItems(const QStringList &items, bool autoSuggest=true)=0
A pure virtual function that must be implemented by all inheriting classes.
virtual void setCompletedText(const QString &text)=0
A pure virtual function that must be implemented by all inheriting classes.
KeyBindingType
Constants that represent the items whose short-cut key-binding is programmable.
Definition kcompletion.h:652
A helper widget for "completion-widgets" (KLineEdit, KComboBox))
Definition kcompletionbox.h:44
Completion
This enum describes the completion mode used for by the KCompletion class.
Definition kglobalsettings.h:179
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.