KWidgetsAddons
keditlistwidget.cpp
45 void init(bool check = false, KEditListWidget::Buttons buttons = KEditListWidget::All, QWidget *representationWidget = nullptr);
54 void KEditListWidgetPrivate::init(bool check, KEditListWidget::Buttons newButtons, QWidget *representationWidget)
82 q->connect(listView->selectionModel(), &QItemSelectionModel::selectionChanged, q, &KEditListWidget::slotSelectionChanged);
224 KEditListWidget::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);
QLineEdit * lineEdit() const const
void append(const T &value)
void setParent(QWidget *parent)
Definition: keditlistwidget.h:38
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
DisplayRole
KeyPress
CaseSensitive
void setSizePolicy(QSizePolicy)
void removed(const QString &text)
This signal is emitted when the user removes a string from the list, the parameter is the removed str...
Q_EMITQ_EMIT
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
int count(const T &value) const const
int column() const const
bool contains(const QString &str, Qt::CaseSensitivity cs) const const
void clicked(bool checked)
virtual bool event(QEvent *event) override
QIcon fromTheme(const QString &name)
KIOFILEWIDGETS_EXPORT QStringList list(const QString &fileClass)
void addStretch(int stretch)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
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
Deselect
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
OtherFocusReason
void setTabOrder(QWidget *first, QWidget *second)
void textChanged(const QString &text)
bool isEmpty() const const
void setButtons(Buttons buttons)
Specifies which buttons are visible.
Definition: keditlistwidget.cpp:274
void beep()
void returnPressed()
void init(KXmlGuiWindow *window, KgDifficulty *difficulty=nullptr)
Key_Down
bool isValid() const const
void insert(int i, const T &value)
int row() const const
selectedIndexes
QEvent::Type type() const const
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 addLayout(QLayout *layout, int stretch)
MinimumExpanding
QString tr(const char *sourceText, const char *disambiguation, int n)
void setFocus()
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...
QObject * parent() const const
KEditListWidget(QWidget *parent=nullptr)
Create an editable listbox.
Definition: keditlistwidget.cpp:217
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:01:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:01:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.