KCompletion
kcompletionbox.cpp
127 if (d->tabHandling && (ev->modifiers() == Qt::NoButton || (ev->modifiers() & Qt::ShiftModifier))) {
void up()
Moves the selection one line up or select the first item if nothing is selected yet.
Definition kcompletionbox.cpp:383
void insertItems(const QStringList &items, int index=-1)
Inserts items into the box.
Definition kcompletionbox.cpp:437
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
bool eventFilter(QObject *, QEvent *) override
Reimplemented from QListWidget to get events from the viewport (to hide this widget on mouse-click,...
Definition kcompletionbox.cpp:91
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
void setVisible(bool visible) override
Reimplemented for internal reasons.
Definition kcompletionbox.cpp:316
MovePageDown
void clearSelection()
virtual bool eventFilter(QObject *object, QEvent *event) override
QItemSelectionModel * selectionModel() const const
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)
QWidget * activeWindow()
Move
void accept()
Type type() const const
Plain
Box
frameWidth
void setLineWidth(int)
void setFrameStyle(int style)
QScreen * screenAt(const QPoint &point)
SelectCurrent
virtual void setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command)
void append(QList< T > &&value)
void reserve(qsizetype size)
virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
void setUniformItemSizes(bool enable)
virtual QRect visualRect(const QModelIndex &index) const const override
void addItem(QListWidgetItem *item)
void addItems(const QStringList &labels)
count
QListWidgetItem * currentItem() const const
void setCurrentRow(int row)
void currentTextChanged(const QString ¤tText)
virtual bool event(QEvent *e) override
void insertItems(int row, const QStringList &labels)
QListWidgetItem * item(int row) const const
void itemClicked(QListWidgetItem *item)
void itemDoubleClicked(QListWidgetItem *item)
int row(const QListWidgetItem *item) const const
QList< QListWidgetItem * > selectedItems() const const
QListWidgetItem * takeItem(int row)
QRect visualItemRect(const QListWidgetItem *item) const const
void setText(const QString &text)
QString text() const const
Q_EMITQ_EMIT
bool blockSignals(bool block)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
T qobject_cast(QObject *object)
bool setProperty(const char *name, QVariant &&value)
bool signalsBlocked() const const
int bottom() const const
int height() const const
int right() const const
QSize size() const const
geometry
PopupFocusReason
Key_Backtab
ShiftModifier
NoButton
ScrollBarAsNeeded
WA_ShowWithoutActivating
ToolTip
height
void hide()
bool isAncestorOf(const QWidget *child) const const
QPoint mapToGlobal(const QPoint &pos) const const
minimumSizeHint
pos
QScreen * screen() const const
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void show()
size
bool isVisible() const const
width
void setWindowFlags(Qt::WindowFlags type)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:16:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:16:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.