KCompletion
kcompletionbox.h
115 * When off, KLineEdit handles Tab itself, making it select the current item from the completion box,
174 * Call it only if you really need it (i.e. the widget was hidden before) to have better performance.
221 * Called when an item is activated. Emits KCompletionBox::textActivated(const QString &) with the item text.
void up()
Moves the selection one line up or select the first item if nothing is selected yet.
Definition kcompletionbox.cpp:383
virtual void slotActivated(QListWidgetItem *)
Called when an item is activated.
Definition kcompletionbox.cpp:83
void resizeAndReposition()
This properly resizes and repositions the listbox.
Definition kcompletionbox.cpp:271
void userCancelled(const QString &)
Emitted whenever the user chooses to ignore the available selections and closes this box.
void textActivated(const QString &text)
Emitted when an item is selected, text is the text of the selected item.
void setItems(const QStringList &items)
Clears the box and inserts items.
Definition kcompletionbox.cpp:446
void setCancelledText(const QString &text)
Sets the text to be emitted if the user chooses not to pick from the available matches.
Definition kcompletionbox.cpp:427
void setActivateOnSelect(bool doEmit)
Set whether or not the selected signal should be emitted when an item is selected.
Definition kcompletionbox.cpp:483
void down()
Moves the selection one line down or select the first item if nothing is selected yet.
Definition kcompletionbox.cpp:369
virtual QPoint globalPositionHint() const
The preferred global coordinate at which the completion box's top left corner should be positioned.
Definition kcompletionbox.cpp:308
QStringList items() const
Returns a list of all items currently in the box.
Definition kcompletionbox.cpp:70
virtual void popup()
Adjusts the size of the box to fit the width of the parent given in the constructor and pops it up at...
Definition kcompletionbox.cpp:253
void setTabHandling(bool enable)
Makes this widget (when visible) capture Tab-key events to traverse the items in the dropdown list (T...
Definition kcompletionbox.cpp:417
QRect calculateGeometry() const
This calculates the size of the dropdown and the relative position of the top left corner with respec...
Definition kcompletionbox.cpp:347
virtual bool eventFilter(QObject *object, QEvent *event) override
virtual QSize sizeHint() const const override
QListWidget(QWidget *parent)
void insertItems(int row, const QStringList &labels)
QList< QListWidgetItem * > items(const QMimeData *data) const const
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
virtual void setVisible(bool visible)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:58:10 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:58:10 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.