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;
59 virtual ~CustomEditor();
61 void setRepresentationWidget(
QWidget *repWidget );
64 virtual QWidget *representationWidget()
const;
68 friend class CustomEditorPrivate;
69 CustomEditorPrivate *
const d;
71 Q_DISABLE_COPY(CustomEditor)
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);
198 int currentItem() const;
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;
290 Q_DISABLE_COPY(KEditListBox)
293 Q_DECLARE_OPERATORS_FOR_FLAGS(KEditListBox::Buttons)
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 05:10:33 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.