KCompletion
khistorycombobox.h
KComboBox(QWidget *parent=nullptr)
Constructs a read-only (or rather select-only) combo box.
Definition kcombobox.cpp:38
KHistoryComboBox(QWidget *parent=nullptr)
Constructs a "read-write" combobox.
Definition khistorycombobox.cpp:112
void addToHistory(const QString &item)
Adds an item to the end of the history list and to the completion list.
Definition khistorycombobox.cpp:210
bool removeFromHistory(const QString &item)
Removes all items named item.
Definition khistorycombobox.cpp:268
void cleared()
Emitted when the history was cleared by the entry in the popup menu.
void setHistoryItems(const QStringList &items)
Inserts items into the combobox.
Definition khistorycombobox.cpp:133
void setIconProvider(std::function< QIcon(const QString &)> providerFunction)
Sets an icon provider, so that items in the combobox can have an icon.
Definition khistorycombobox.cpp:404
void insertItems(int index, const QStringList &list)
virtual void keyPressEvent(QKeyEvent *e) override
virtual void wheelEvent(QWheelEvent *e) override
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:50:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:50:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.