KCompletion
kcombobox.h
101 * connect(combo, &KComboBox::returnPressed, comp, [this](const QString &text) { addItem(text); });
119 * connect(combo, &KComboBox::returnPressed, comp, [this](const QString &text) { addItem(text); });
131 * \image html kcombobox.png "KComboBox widgets, one non-editable, one editable with KUrlCompletion"
135class KCOMPLETION_EXPORT KComboBox : public QComboBox, public KCompletionBase // krazy:exclude=qclasses
void substringCompletion(const QString &)
Emitted when the shortcut for substring completion is pressed.
void aboutToShowContextMenu(QMenu *contextMenu)
Emitted before the context menu is displayed.
void completionModeChanged(KCompletion::CompletionMode)
Emitted whenever the completion mode is changed by the user through the context menu.
void textRotation(KCompletionBase::KeyBindingType)
Emitted when the text rotation key bindings are pressed.
void returnPressed(const QString &text)
Emitted when the user presses the Return or Enter key.
An abstract base class for adding a completion feature into widgets.
Definition kcompletionbase.h:37
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 shortcut key binding is programmable.
Definition kcompletionbase.h:45
A helper widget for "completion-widgets" (KLineEdit, KComboBox))
Definition kcompletionbox.h:37
CompletionMode
This enum describes the completion mode used for by the KCompletion class.
Definition kcompletion.h:131
void setEditable(bool editable)
virtual QSize minimumSizeHint() const const override
void setLineEdit(QLineEdit *edit)
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.