KDEUI
kactionselector.cpp
Go to the documentation of this file.
447 selectedListWidget->insertItem( insertionIndex( selectedListWidget, selectedInsertionPolicy ), item );
462 availableListWidget->insertItem( insertionIndex( availableListWidget, availableInsertionPolicy ), item );
538 int KActionSelectorPrivate::insertionIndex( QListWidget *lb, KActionSelector::InsertionPolicy policy )
QString i18n(const char *text)
void setButtonWhatsThis(const QString &text, MoveButton button)
Sets the whatsthis help for button button to text.
Definition: kactionselector.cpp:243
void setButtonsEnabled()
Sets the enabled state of all moving buttons to reflect the current options.
Definition: kactionselector.cpp:264
Qt::KeyboardModifiers modifiers() const
bool isRightToLeft()
Type type() const
void keyPressEvent(QKeyEvent *)
Reimplamented for internal reasons.
Definition: kactionselector.cpp:369
KActionSelector(QWidget *parent=0)
Definition: kactionselector.cpp:82
void setAvailableInsertionPolicy(InsertionPolicy policy)
Sets the insertion policy for the available listbox.
Definition: kactionselector.cpp:322
InsertionPolicy
This enum defines policies for where to insert moved items in a listbox.
Definition: kactionselector.h:127
QListWidget * listWidget() const
const T & at(int i) const
void polish()
Emitted when an item is moved to the "selected" listbox.
Definition: kactionselector.cpp:361
const QPixmap * icon() const
void insertItem(int row, QListWidgetItem *item)
bool moveOnDoubleClick() const
void sortItems(Qt::SortOrder order)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setButtonIconSet(const QIcon &iconset, MoveButton button)
Sets the iconset for button button to iconset.
Definition: kactionselector.cpp:197
Definition: kactionselector.h:112
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void setAvailableLabel(const QString &text)
Sets the label for the available items listbox to text.
Definition: kactionselector.cpp:302
QListWidget * availableListWidget() const
Definition: kactionselector.cpp:162
void ignore()
QListWidgetItem * takeItem(int row)
void setFocus()
void setMoveOnDoubleClick(bool enable)
Sets moveOnDoubleClick to enable.
Definition: kactionselector.cpp:282
bool isEmpty() const
void setKeyboardEnabled(bool enable)
Sets the keyboard enabled depending on enable.
Definition: kactionselector.cpp:292
Definition: kactionselector.h:111
void setSelectedInsertionPolicy(InsertionPolicy policy)
Sets the insertion policy for the selected listbox.
Definition: kactionselector.cpp:332
void setButtonIcon(const QString &icon, MoveButton button)
Sets the pixmap of the button button to icon.
Definition: kactionselector.cpp:172
void setShowUpDownButtons(bool show)
Sets whether the Up and Down buttons should be displayed according to show.
Definition: kactionselector.cpp:342
virtual bool eventFilter(QObject *watched, QEvent *event)
InsertionPolicy selectedInsertionPolicy() const
void setCurrentItem(QListWidgetItem *item)
void setButtonTooltip(const QString &tip, MoveButton button)
Sets the tooltip for the button button to tip.
Definition: kactionselector.cpp:218
void setMargin(int margin)
currentRow
InsertionPolicy availableInsertionPolicy() const
int key() const
QList< QListWidgetItem * > selectedItems() const
Definition: kactionselector.h:129
int row(const QListWidgetItem *item) const
QString selectedLabel() const
bool keyboardEnabled() const
QListWidget * selectedListWidget() const
Definition: kactionselector.cpp:167
Definition: kactionselector.h:130
void addStretch(int stretch)
bool eventFilter(QObject *, QEvent *)
Reimplemented for internal reasons.
Definition: kactionselector.cpp:395
bool showUpDownButtons() const
void show()
QString availableLabel() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
A widget for selecting and arranging actions/objects.
Definition: kactionselector.h:80
void setSelectedLabel(const QString &text)
Sets the label for the selected items listbox to text.
Definition: kactionselector.cpp:312
Definition: kactionselector.h:109
void addLayout(QLayout *layout, int stretch)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:58 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:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.