KWidgetsAddons
kactionselector.cpp
146 connect(d->availableListWidget, &QListWidget::itemDoubleClicked, this, [this] (QListWidgetItem *item) { d->itemDoubleClicked(item); });
147 connect(d->selectedListWidget, &QListWidget::itemDoubleClicked, this, [this] (QListWidgetItem *item) { d->itemDoubleClicked(item); });
148 connect(d->availableListWidget, &QListWidget::itemSelectionChanged, this, &KActionSelector::setButtonsEnabled);
149 connect(d->selectedListWidget, &QListWidget::itemSelectionChanged, this, &KActionSelector::setButtonsEnabled);
434 selectedListWidget->insertItem(insertionIndex(selectedListWidget, selectedInsertionPolicy), item);
450 availableListWidget->insertItem(insertionIndex(availableListWidget, availableInsertionPolicy), item);
517 KActionSelector::InsertionPolicy p = (lbTo == availableListWidget) ? availableInsertionPolicy : selectedInsertionPolicy;
534int KActionSelectorPrivate::insertionIndex(QListWidget *lb, KActionSelector::InsertionPolicy policy)
bool eventFilter(QObject *, QEvent *) override
Reimplemented for internal reasons.
Definition kactionselector.cpp:387
void movedUp(QListWidgetItem *item)
Emitted when an item is moved upwards in the "selected" listbox.
void setShowUpDownButtons(bool show)
Sets whether the Up and Down buttons should be displayed according to show.
Definition kactionselector.cpp:333
InsertionPolicy
This enum defines policies for where to insert moved items in a listbox.
Definition kactionselector.h:111
@ Sorted
The listbox is sort()ed after one or more items are inserted.
Definition kactionselector.h:113
@ BelowCurrent
The item is inserted below the listbox' currentItem() or at the end if there is no current item.
Definition kactionselector.h:112
void movedDown(QListWidgetItem *item)
Emitted when an item is moved downwards in the "selected" listbox.
void setSelectedLabel(const QString &text)
Sets the label for the selected items listbox to text.
Definition kactionselector.cpp:303
void setSelectedInsertionPolicy(InsertionPolicy policy)
Sets the insertion policy for the selected listbox.
Definition kactionselector.cpp:323
void removed(QListWidgetItem *item)
Emitted when an item is moved out of the "selected" listbox.
void setButtonIconSet(const QIcon &iconset, MoveButton button)
Sets the iconset for button button to iconset.
Definition kactionselector.cpp:197
void setMoveOnDoubleClick(bool enable)
Sets moveOnDoubleClick to enable.
Definition kactionselector.cpp:273
void setAvailableLabel(const QString &text)
Sets the label for the available items listbox to text.
Definition kactionselector.cpp:293
QListWidget * selectedListWidget() const
Definition kactionselector.cpp:167
void setButtonTooltip(const QString &tip, MoveButton button)
Sets the tooltip for the button button to tip.
Definition kactionselector.cpp:218
void setButtonWhatsThis(const QString &text, MoveButton button)
Sets the whatsthis help for button button to text.
Definition kactionselector.cpp:243
void keyPressEvent(QKeyEvent *) override
Reimplemented for internal reasons.
Definition kactionselector.cpp:361
void added(QListWidgetItem *item)
Emitted when an item is moved to the "selected" listbox.
void setButtonIcon(const QString &icon, MoveButton button)
Sets the pixmap of the button button to icon.
Definition kactionselector.cpp:172
void setKeyboardEnabled(bool enable)
Sets the keyboard enabled depending on enable.
Definition kactionselector.cpp:283
void setButtonsEnabled()
Emitted when an item is moved to the "selected" listbox.
Definition kactionselector.cpp:349
QListWidget * availableListWidget() const
Definition kactionselector.cpp:162
void setAvailableInsertionPolicy(InsertionPolicy policy)
Sets the insertion policy for the available listbox.
Definition kactionselector.cpp:313
KIOCORE_EXPORT QStringList list(const QString &fileClass)
void clicked(bool checked)
void setIcon(const QIcon &icon)
void addLayout(QLayout *layout, int stretch)
void addStretch(int stretch)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
KeyPress
void ignore()
Type type() const const
bool isRightToLeft()
QIcon fromTheme(const QString &name)
int key() const const
Qt::KeyboardModifiers modifiers() const const
void setContentsMargins(const QMargins &margins)
const_reference at(qsizetype i) const const
bool isEmpty() const const
count
currentRow
void insertItem(int row, QListWidgetItem *item)
QListWidgetItem * item(int row) const const
void itemDoubleClicked(QListWidgetItem *item)
void itemSelectionChanged()
int row(const QListWidgetItem *item) const const
QList< QListWidgetItem * > selectedItems() const const
void setCurrentItem(QListWidgetItem *item)
void sortItems(Qt::SortOrder order)
QListWidgetItem * takeItem(int row)
QListWidget * listWidget() const const
virtual bool eventFilter(QObject *watched, QEvent *event)
T qobject_cast(QObject *object)
Key_Right
ControlModifier
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
void setFocus()
void show()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:11:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:11:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.