KCompletion
klineedit.h
97 * connect(edit, &KLineEdit::returnKeyPressed, comp, [this](const QString &text) { addItem(text); });
107 * connect(edit, &KLineEdit::returnKeyPressed, comp, [this](const QString &text) { addItem(text); });
138 class KCOMPLETION_EXPORT KLineEdit : public QLineEdit, public KCompletionBase // krazy:exclude=qclasses
223 KCOMPLETION_DEPRECATED_VERSION(4, 5, "Use QWidget::setContextMenuPolicy(Qt::ContextMenuPolicy)")
244 void setUrlDropsEnabled(bool enable); // KF6: remove it and don't create LineEditUrlDropEventFilter by default.
408 KCOMPLETION_DEPRECATED_VERSION(5, 81, "Use the KLineEdit::returnKeyPressed(const QString &) signal instead")
Q_PROPERTY(...)
QMenu * createStandardContextMenu()
virtual void mouseDoubleClickEvent(QMouseEvent *e) override
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.
virtual void resizeEvent(QResizeEvent *event)
virtual void keyPressEvent(QKeyEvent *event) override
CompletionMode
This enum describes the completion mode used for by the KCompletion class.
Definition: kcompletion.h:131
virtual bool event(QEvent *e) override
void setText(const QString &)
virtual void setCompletionMode(KCompletion::CompletionMode mode)
Sets the type of completion to be used.
Definition: kcompletionbase.cpp:185
virtual void setCompletionObject(KCompletion *completionObject, bool handleSignals=true)
Sets up the completion object to be used.
Definition: kcompletionbase.cpp:104
An abstract class for adding text completion support to widgets.
Definition: kcompletionbase.h:36
void returnPressed()
void setReadOnly(bool)
Definition: klineedit.h:138
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
virtual void mouseReleaseEvent(QMouseEvent *e) override
Q_SIGNALSQ_SIGNALS
virtual void paintEvent(QPaintEvent *) override
virtual void contextMenuEvent(QContextMenuEvent *event) override
virtual void setCompletedText(const QString &text)=0
A pure virtual function that must be implemented by all inheriting classes.
void copy() const const
virtual void mousePressEvent(QMouseEvent *e) override
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Wed Jun 29 2022 04:15:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Wed Jun 29 2022 04:15:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.