KDEUI
kcompletionbox.cpp
Go to the documentation of this file.
void down()
Moves the selection one line down or select the first item if nothing is selected yet...
Definition: kcompletionbox.cpp:404
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
Qt::KeyboardModifiers modifiers() const
QSize size() const
Type type() const
bool activateOnSelect() const
QListWidgetItem * currentItem() const
int width() const
void up()
Moves the selection one line up or select the first item if nothing is selected yet.
Definition: kcompletionbox.cpp:418
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
QString cancelledText() const
int right() const
QStyle * style() const
virtual QModelIndex moveCursor(CursorAction cursorAction, QFlags< Qt::KeyboardModifier > modifiers)
int y() const
QStringList items() const
Returns a list of all items currently in the box.
Definition: kcompletionbox.cpp:77
bool isVisible() const
QPoint mapToGlobal(const QPoint &pos) const
bool isAncestorOf(const QWidget *child) const
int height() const
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
int x() const
int y() const
void setFrameStyle(int style)
void setActivateOnSelect(bool state)
Set whether or not the selected signal should be emitted when an item is selected.
Definition: kcompletionbox.cpp:573
virtual void setVisible(bool visible)
Re-implemented for internal reasons.
Definition: kcompletionbox.cpp:317
QRect visualItemRect(const QListWidgetItem *item) const
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 setLineWidth(int)
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 addItem(const QString &label)
int x() const
int y() const
int width() const
QSize size() const
QWidget * activeWindow()
void append(const T &value)
int x() const
void insertItems(const QStringList &items, int index=-1)
Inserts items into the box.
Definition: kcompletionbox.cpp:501
QListWidgetItem * takeItem(int row)
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)
QPoint pos() const
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
virtual QRect visualRect(const QModelIndex &index) const
virtual bool eventFilter(QObject *watched, QEvent *event)
void hide()
QListWidgetItem * item(int row) const
void itemClicked(QListWidgetItem *item)
int count() const
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 setCurrentRow(int row)
void activated(const QString &)
Emitted when an item was selected, contains the text of the selected item.
bool signalsBlocked() const
int key() const
void accept()
bool blockSignals(bool block)
void setUniformItemSizes(bool enable)
QList< QListWidgetItem * > selectedItems() const
int row(const QListWidgetItem *item) const
bool isTabHandling() const
State state() const
bool isNull() const
void setWindowFlags(QFlags< Qt::WindowType > type)
int frameWidth() const
void addItems(const QStringList &labels)
void currentTextChanged(const QString ¤tText)
typedef ConstIterator
int bottom() const
virtual bool event(QEvent *e)
void sizeAndPosition()
This properly sizes and positions the listbox.
Definition: kcompletionbox.cpp:278
void userCancelled(const QString &)
Emitted whenever the user chooses to ignore the available selections and close the this box...
void show()
virtual QSize minimumSizeHint() const
const_iterator constEnd() const
const_iterator constBegin() const
void clearSelection()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
A variant of QListWidget that honors KDE's system-wide settings.
Definition: klistwidget.h:40
void insertItems(int row, const QStringList &labels)
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)
void setItems(const QStringList &items)
Clears the box and inserts items.
Definition: kcompletionbox.cpp:510
QString text() const
int height() const
void itemDoubleClicked(QListWidgetItem *item)
void setText(const QString &text)
virtual void slotActivated(QListWidgetItem *)
Called when an item was activated.
Definition: kcompletionbox.cpp:91
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.