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"
135 class KCOMPLETION_EXPORT KComboBox : public QComboBox, public KCompletionBase // krazy:exclude=qclasses
175 KCOMPLETION_DEPRECATED_VERSION(4, 5, "Use KComboBox::insertUrl(int, const QIcon&, const QUrl&)")
185 KCOMPLETION_DEPRECATED_VERSION(4, 5, "Use KComboBox::changeUrl(int, const QIcon&, const QUrl&)")
312 KCOMPLETION_DEPRECATED_VERSION(5, 0, "Use KComboBox::lineEdit()->installEventFilter(...) with a LineEditUrlDropEventFilter")
Q_PROPERTY(...)
Q_SLOTSQ_SLOTS
virtual void setCompletedItems(const QStringList &items, bool autoSuggest=true)=0
A pure virtual function that must be implemented by all inheriting classes.
autoCompletion
void setAutoCompletion(bool enable)
CompletionMode
This enum describes the completion mode used for by the KCompletion class.
Definition: kcompletion.h:131
const QList< QKeySequence > & substringCompletion()
void setLineEdit(QLineEdit *edit)
virtual QSize minimumSizeHint() const const override
An abstract class for adding text completion support to widgets.
Definition: kcompletionbase.h:36
count
A helper widget for "completion-widgets" (KLineEdit, KComboBox))
Definition: kcompletionbox.h:36
KeyBindingType
Constants that represent the items whose shortcut key binding is programmable.
Definition: kcompletionbase.h:45
Q_SIGNALSQ_SIGNALS
void setEditable(bool editable)
virtual void setCompletedText(const QString &text)=0
A pure virtual function that must be implemented by all inheriting classes.
const QList< QKeySequence > & completion()
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Jul 1 2022 05:34:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Jul 1 2022 05:34:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.