KDEUI
khistorycombobox.cpp
Go to the documentation of this file.
104 connect(this, SIGNAL(returnPressed(QString)), SLOT(slotSimulateActivated(QString)), Qt::QueuedConnection);
177 QAction* clearHistory = menu->addAction( KIcon("edit-clear-history"), i18n("Clear &History"), this, SLOT(slotClear()));
425 if ((insertPolicy() == NoInsert && findText(text, Qt::MatchFixedString|Qt::MatchCaseSensitive) == -1)) {
void insertItems(const QStringList &items)
Inserts items into the combo, honoring pixmapProvider() Does not update the completionObject.
Definition: khistorycombobox.cpp:395
QString i18n(const char *text)
Definition: knotification.h:247
static void setEditText(KLineEdit *edit, const QString &text)
Definition: klineedit.cpp:1454
KPixmapProvider * pixmapProvider() const
Definition: khistorycombobox.cpp:438
virtual void wheelEvent(QWheelEvent *ev)
Handling wheel-events, to rotate the items.
Definition: khistorycombobox.cpp:352
KCompletion * compObj() const
Returns a pointer to the completion object.
Definition: kcompletionbase.cpp:220
bool contains(const QString &text) const
Convenience method which iterates over all items and checks if any of them is equal to text...
Definition: kcombobox.cpp:88
bool removeFromHistory(const QString &item)
Removes all items named item.
Definition: khistorycombobox.cpp:235
void addToHistory(const QString &item)
Adds an item to the end of the history list and to the completion list.
Definition: khistorycombobox.cpp:183
void aboutToShowContextMenu(QMenu *p)
Emitted before the context menu is displayed.
KHistoryComboBox(QWidget *parent=0)
Constructs a "read-write" combobox.
Definition: khistorycombobox.cpp:66
virtual void keyPressEvent(QKeyEvent *)
Handling key-events, the shortcuts to rotate the items.
Definition: khistorycombobox.cpp:340
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
Clear the content of the focus widget.
Definition: kstandardaction.cpp:314
void reset()
Resets the current position of the up/down history.
Definition: khistorycombobox.cpp:443
virtual void setItems(const QStringList &list)
Sets the list of items available for completion.
Definition: kcompletion.cpp:99
~KHistoryComboBox()
Destructs the combo, the completion-object and the pixmap-provider.
Definition: khistorycombobox.cpp:107
KCompletion * completionObject(bool hsig=true)
Returns a pointer to the current completion object.
Definition: kcompletionbase.cpp:96
static KNotification * event(const QString &eventId, const QString &title, const QString &text, const QPixmap &pixmap=QPixmap(), QWidget *widget=0L, const NotificationFlags &flags=CloseOnTimeout, const KComponentData &componentData=KComponentData())
emit an event
Definition: knotification.cpp:291
void removeItem(const QString &item)
Removes an item from the list of available completions.
Definition: kcompletion.cpp:208
void addItem(const QString &item)
Adds an item to the list of available completions.
Definition: kcompletion.cpp:146
const KShortcut & rotateDown()
Help users iterate through a list of entries.
Definition: kstandardshortcut.cpp:367
void setPixmapProvider(KPixmapProvider *prov)
Sets a pixmap provider, so that items in the combobox can have a pixmap.
Definition: khistorycombobox.cpp:377
const KShortcut & rotateUp()
Help users iterate through a list of entries.
Definition: kstandardshortcut.cpp:366
A tiny abstract class with just one method: pixmapFor()
Definition: kpixmapprovider.h:38
void setHistoryItems(const QStringList &items)
Inserts items into the combobox.
Definition: khistorycombobox.cpp:113
virtual void setOrder(CompOrder order)
KCompletion offers three different ways in which it offers its items:
Definition: kcompletion.cpp:78
void cleared()
Emitted when the history was cleared by the entry in the popup menu.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.