KDEUI
Go to the documentation of this file. 20 #ifndef KEDITLISTBOX_H 21 #define KEDITLISTBOX_H 25 #include <QtGui/QGroupBox> 26 #include <QtGui/QStringListModel> 33 class 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;
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,
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 );
267 void added(
const QString & text );
273 void removed(
const QString & text );
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;
293 Q_DECLARE_OPERATORS_FOR_FLAGS(KEditListBox::Buttons)
const char * name(StandardAction id)
This will return the internal name of a given standard action.
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
Clear the content of the focus widget.
Button
Enumeration of the buttons, the listbox offers.
An enhanced QLineEdit widget for inputting text.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jan 18 2020 19:01:06 by
doxygen 1.8.15 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.