KDEUI
Go to the documentation of this file.
25#include <QtGui/QGroupBox>
26#include <QtGui/QStringListModel>
33class KEditListBoxPrivate;
44 Q_PROPERTY( Buttons buttons READ buttons WRITE setButtons )
45 Q_PROPERTY( QStringList items READ items WRITE setItems NOTIFY changed USER
true )
48 class CustomEditorPrivate;
61 void setRepresentationWidget(
QWidget *repWidget );
64 virtual QWidget *representationWidget()
const;
68 friend class CustomEditorPrivate;
69 CustomEditorPrivate *
const d;
84 All = Add | Remove | UpDown
87 Q_DECLARE_FLAGS( Buttons, Button )
119 bool checkAtEntering =
false, Buttons buttons = All );
129 const char *name,
bool checkAtEntering =
false,
130 Buttons buttons = All );
144 const CustomEditor &customEditor,
145 QWidget *parent = 0,
const char *name = 0,
146 bool checkAtEntering =
false, Buttons buttons = All );
182 void insertStringList(
const QStringList& list,
int index=-1);
186 void insertItem(
const QString& text,
int index=-1);
194 QString text(
int index)
const;
198 int currentItem()
const;
202 QString currentText()
const;
207 QStringList items()
const;
212 void setItems(
const QStringList& items);
217 Buttons buttons()
const;
222 void setButtons( Buttons buttons );
235 void setCheckAtEntering(
bool check);
240 bool checkAtEntering();
253 void setCustomEditor(
const CustomEditor& editor );
258 bool eventFilter(
QObject* o, QEvent* e );
280 void enableMoveButtons(
const QModelIndex&,
const QModelIndex&);
281 void typedSomething(
const QString& text);
284 void slotSelectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected );
287 friend class KEditListBoxPrivate;
288 KEditListBoxPrivate*
const d;
293Q_DECLARE_OPERATORS_FOR_FLAGS(KEditListBox::Buttons)
Button
Enumeration of the buttons, the listbox offers.
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 removed(const QString &text)
This signal is emitted when the user removes a string from the list, the parameter is the removed str...
An enhanced QLineEdit widget for inputting text.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.