KDEUI
kcompletionbox.cpp
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
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
virtual void setVisible(bool visible)
Re-implemented for internal reasons.
Definition: kcompletionbox.cpp:317
A variant of QListWidget that honors KDE's system-wide settings.
Definition: klistwidget.h:40
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
QStringList items() const
Returns a list of all items currently in the box.
Definition: kcompletionbox.cpp:77
void activated(const QString &)
Emitted when an item was selected, contains the text of the selected item.
void setActivateOnSelect(bool state)
Set whether or not the selected signal should be emitted when an item is selected.
Definition: kcompletionbox.cpp:573
void setItems(const QStringList &items)
Clears the box and inserts items.
Definition: kcompletionbox.cpp:510
void up()
Moves the selection one line up or select the first item if nothing is selected yet.
Definition: kcompletionbox.cpp:418
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 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
static QRect desktopGeometry(const QPoint &point)
This function returns the desktop geometry for an application that needs to set the geometry of a wid...
Definition: kglobalsettings.cpp:732
void insertItems(const QStringList &items, int index=-1)
Inserts items into the box.
Definition: kcompletionbox.cpp:501
void userCancelled(const QString &)
Emitted whenever the user chooses to ignore the available selections and close the this box.
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
virtual void slotActivated(QListWidgetItem *)
Called when an item was activated.
Definition: kcompletionbox.cpp:91
void down()
Moves the selection one line down or select the first item if nothing is selected yet.
Definition: kcompletionbox.cpp:404
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.