KWidgetsAddons
keditlistwidget.cpp
45 void init(bool check = false, KEditListWidget::Buttons buttons = KEditListWidget::All, QWidget *representationWidget = nullptr);
54void KEditListWidgetPrivate::init(bool check, KEditListWidget::Buttons newButtons, QWidget *representationWidget)
82 q->connect(listView->selectionModel(), &QItemSelectionModel::selectionChanged, q, &KEditListWidget::slotSelectionChanged);
224KEditListWidget::KEditListWidget(const CustomEditor &custom, QWidget *parent, bool checkAtEntering, Buttons buttons)
281 d->servNewButton = new QPushButton(QIcon::fromTheme(QStringLiteral("list-add")), tr("&Add", "@action:button"), this);
293 d->servRemoveButton = new QPushButton(QIcon::fromTheme(QStringLiteral("list-remove")), tr("&Remove", "@action:button"), this);
305 d->servUpButton = new QPushButton(QIcon::fromTheme(QStringLiteral("arrow-up")), tr("Move &Up", "@action:button"), this);
310 d->servDownButton = new QPushButton(QIcon::fromTheme(QStringLiteral("arrow-down")), tr("Move &Down", "@action:button"), this);
void insertStringList(const QStringList &list, int index=-1)
Inserts a list of elements from the index element If index is negative, the elements will be appended...
Definition keditlistwidget.cpp:571
void setCheckAtEntering(bool check)
If check is true, after every character you type in the line edit KEditListWidget will enable or disa...
Definition keditlistwidget.cpp:327
bool eventFilter(QObject *o, QEvent *e) override
Reimplemented for internal reasons.
Definition keditlistwidget.cpp:640
void setItems(const QStringList &items)
Clears the listbox and sets the contents to items.
Definition keditlistwidget.cpp:620
void setCustomEditor(const CustomEditor &editor)
Allows to use a custom editing widget instead of the standard QLineEdit widget.
Definition keditlistwidget.cpp:234
void removed(const QString &text)
This signal is emitted when the user removes a string from the list, the parameter is the removed str...
void insertItem(const QString &text, int index=-1)
Inserts a text element at the index position If index is negative, the element will be appended.
Definition keditlistwidget.cpp:585
KEditListWidget(QWidget *parent=nullptr)
Create an editable listbox.
Definition keditlistwidget.cpp:217
void added(const QString &text)
This signal is emitted when the user adds a new string to the list, the parameter is the added string...
void setButtons(Buttons buttons)
Specifies which buttons are visible.
Definition keditlistwidget.cpp:274
KIOCORE_EXPORT QStringList list(const QString &fileClass)
void clicked(bool checked)
QItemSelectionModel * selectionModel() const const
virtual void setModel(QAbstractItemModel *model)
void beep()
void addLayout(QLayout *layout, int stretch)
void addStretch(int stretch)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
void insertWidget(int index, QWidget *widget, int stretch, Qt::Alignment alignment)
QLineEdit * lineEdit() const const
KeyPress
Type type() const const
QIcon fromTheme(const QString &name)
Deselect
selectedIndexes
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
void setContentsMargins(const QMargins &margins)
void returnPressed()
text
void textChanged(const QString &text)
void append(QList< T > &&value)
qsizetype count() const const
iterator insert(const_iterator before, parameter_type value)
int column() const const
bool isValid() const const
int row() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void installEventFilter(QObject *filterObj)
QObject * parent() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
MinimumExpanding
bool isEmpty() const const
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
CaseSensitive
OtherFocusReason
DisplayRole
Key_Down
void setFocus()
void setParent(QWidget *parent)
void setTabOrder(QWidget *first, QWidget *second)
void setSizePolicy(QSizePolicy)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:58:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:58:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.