KDEUI
Go to the documentation of this file.
21 #ifndef KEDITLISTWIDGET_H
22 #define KEDITLISTWIDGET_H
26 #include <QtGui/QWidget>
27 #include <QtGui/QStringListModel>
34 class KEditListWidgetPrivate;
53 Q_PROPERTY( Buttons buttons READ buttons WRITE setButtons )
54 Q_PROPERTY( QStringList items READ items WRITE setItems NOTIFY changed USER true )
55 Q_PROPERTY(
bool checkAtEntering READ checkAtEntering WRITE setCheckAtEntering )
58 class CustomEditorPrivate;
71 void setRepresentationWidget(
QWidget *repWidget );
74 virtual QWidget *representationWidget()
const;
78 friend class CustomEditorPrivate;
79 CustomEditorPrivate *
const d;
97 Q_DECLARE_FLAGS( Buttons, Button )
117 bool checkAtEntering =
false,
118 Buttons buttons = All );
154 void insertStringList(
const QStringList& list,
int index=-1);
158 void insertItem(
const QString& text,
int index=-1);
166 QString text(
int index)
const;
170 int currentItem()
const;
174 QString currentText()
const;
179 QStringList items()
const;
184 void setItems(
const QStringList& items);
189 Buttons buttons()
const;
194 void setButtons( Buttons buttons );
207 void setCheckAtEntering(
bool check);
212 bool checkAtEntering();
223 void setCustomEditor(
const CustomEditor& editor );
228 bool eventFilter(
QObject* o, QEvent* e );
237 void added(
const QString & text );
243 void removed(
const QString & text );
250 void enableMoveButtons(
const QModelIndex&,
const QModelIndex&);
251 void typedSomething(
const QString& text);
252 void slotSelectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected );
255 friend class KEditListWidgetPrivate;
256 KEditListWidgetPrivate*
const d;
261 Q_DECLARE_OPERATORS_FOR_FLAGS(KEditListWidget::Buttons)
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
Clear the content of the focus widget.
An enhanced QLineEdit widget for inputting text.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.