KDEUI
kcompletionbox.h
Go to the documentation of this file.
virtual void setVisible(bool visible)
Re-implemented for internal reasons.
Definition kcompletionbox.cpp:317
void up()
Moves the selection one line up or select the first item if nothing is selected yet.
Definition kcompletionbox.cpp:418
void insertItems(const QStringList &items, int index=-1)
Inserts items into the box.
Definition kcompletionbox.cpp:501
virtual void slotActivated(QListWidgetItem *)
Called when an item was activated.
Definition kcompletionbox.cpp:91
void activated(const QString &)
Emitted when an item was selected, contains the text of the selected item.
virtual bool eventFilter(QObject *, QEvent *)
Reimplemented from KListWidget to get events from the viewport (to hide this widget on mouse-click,...
Definition kcompletionbox.cpp:100
void userCancelled(const QString &)
Emitted whenever the user chooses to ignore the available selections and close the this box.
void setItems(const QStringList &items)
Clears the box and inserts items.
Definition kcompletionbox.cpp:510
void setCancelledText(const QString &txt)
Sets the text to be emitted if the user chooses not to pick from the available matches.
Definition kcompletionbox.cpp:469
void down()
Moves the selection one line down or select the first item if nothing is selected yet.
Definition kcompletionbox.cpp:404
virtual QPoint globalPositionHint() const
The preferred global coordinate at which the completion box's top left corner should be positioned.
Definition kcompletionbox.cpp:310
void sizeAndPosition()
This properly sizes and positions the listbox.
Definition kcompletionbox.cpp:278
QStringList items() const
Returns a list of all items currently in the box.
Definition kcompletionbox.cpp:77
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:261
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:459
QRect calculateGeometry() const
This calculates the size of the dropdown and the relative position of the top left corner with respec...
Definition kcompletionbox.cpp:348
void setActivateOnSelect(bool state)
Set whether or not the selected signal should be emitted when an item is selected.
Definition kcompletionbox.cpp:573
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.