KDEUI
Go to the documentation of this file.
25 #include <QtGui/QComboBox>
151 Q_PROPERTY(
bool autoCompletion READ autoCompletion WRITE setAutoCompletion )
152 Q_PROPERTY(
bool urlDropsEnabled READ urlDropsEnabled WRITE setUrlDropsEnabled )
153 Q_PROPERTY(
bool trapReturnKey READ trapReturnKey WRITE setTrapReturnKey )
184 #ifndef KDE_NO_DEPRECATED
185 KDE_DEPRECATED
void insertURL(
const KUrl& url,
int index = -1 )
186 { insertUrl( index < 0 ? count() : index, url ); }
187 KDE_DEPRECATED
void insertURL(
const QPixmap& pixmap,
const KUrl& url,
int index = -1 )
188 { insertUrl( index < 0 ? count() : index, QIcon(pixmap), url ); }
189 KDE_DEPRECATED
void changeURL(
const KUrl& url,
int index )
190 { changeUrl( index, url ); }
191 KDE_DEPRECATED
void changeURL(
const QPixmap& pixmap,
const KUrl& url,
int index )
192 { changeUrl( index, QIcon(pixmap), url ); }
200 void setEditUrl(
const KUrl& url );
207 void addUrl(
const KUrl& url );
214 void addUrl(
const QIcon& icon,
const KUrl& url );
221 void insertUrl(
int index,
const KUrl& url );
228 void insertUrl(
int index,
const QIcon& icon,
const KUrl& url );
235 void changeUrl(
int index,
const KUrl& url );
242 void changeUrl(
int index ,
const QIcon& icon,
const KUrl& url);
252 int cursorPosition()
const;
264 virtual void setAutoCompletion(
bool autocomplete );
275 bool autoCompletion()
const;
291 #ifndef KDE_NO_DEPRECATED
292 virtual KDE_DEPRECATED
void setContextMenuEnabled(
bool showMenu );
302 void setUrlDropsEnabled(
bool enable );
307 bool urlDropsEnabled()
const;
318 bool contains(
const QString& text )
const;
333 void setTrapReturnKey(
bool trap );
341 bool trapReturnKey()
const;
346 virtual bool eventFilter(
QObject *, QEvent * );
377 void setEditable(
bool editable);
385 void returnPressed();
396 void returnPressed(
const QString& );
441 void aboutToShowContextMenu(
QMenu * p );
483 void setCurrentItem(
const QString& item,
bool insert =
false,
int index = -1 );
498 virtual void makeCompletion(
const QString& );
514 virtual void create( WId = 0,
bool initializeWindow =
true,
515 bool destroyOldWindow =
true );
517 virtual void wheelEvent( QWheelEvent *ev );
519 virtual QSize minimumSizeHint()
const;
522 void lineEditDeleted();
531 class KComboBoxPrivate;
532 KComboBoxPrivate*
const d;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 11:46:12 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.