KIO
kurlcombobox.cpp
Go to the documentation of this file.
249 QMap<int,const KUrlComboBoxPrivate::KUrlComboItem*>::ConstIterator mit = d->itemMapper.constBegin();
290 QString text = /*isEditable() ? item->url.prettyUrl( (KUrl::AdjustPathOption)myMode ) : */ item->text;
318 void KUrlComboBox::KUrlComboBoxPrivate::insertUrlItem( const KUrlComboBoxPrivate::KUrlComboItem *item )
357 QMap<int,const KUrlComboBoxPrivate::KUrlComboItem*>::ConstIterator mit = d->itemMapper.constBegin();
391 style()->subControlRect(QStyle::CC_ComboBox, &comboOpt, QStyle::SC_ComboBoxEditField, this)).x();
407 if (!itemIcon(index).isNull() && !d->m_dragPoint.isNull() && event->buttons() & Qt::LeftButton &&
431 void KUrlComboBox::KUrlComboBoxPrivate::updateItem( const KUrlComboBoxPrivate::KUrlComboItem *item,
virtual void setCompletionObject(KCompletion *compObj, bool hsig=true)
Reimplemented from KComboBox (from KCompletion)
Definition: kurlcombobox.cpp:375
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual void mousePressEvent(QMouseEvent *event)
Definition: kurlcombobox.cpp:386
This combobox shows a number of recent URLs/directories, as well as some default directories.
Definition: kurlcombobox.h:47
void removeUrl(const KUrl &url, bool checkDefaultURLs=true)
Removes any occurrence of url.
Definition: kurlcombobox.cpp:355
void setUrls(const QStringList &urls)
Inserts urls into the combobox below the "default urls" (see addDefaultUrl).
Definition: kurlcombobox.cpp:169
KUrlComboBox(Mode mode, QWidget *parent=0)
Constructs a KUrlComboBox.
Definition: kurlcombobox.cpp:75
QStringList urls() const
void setMaxItems(int)
Sets how many items should be handled and displayed by the combobox.
Definition: kurlcombobox.cpp:329
Definition: kurlcombobox.h:65
void addDefaultUrl(const KUrl &url, const QString &text=QString())
Adds a url that will always be shown in the combobox, it can't be "rotated away". ...
Definition: kurlcombobox.cpp:134
int maxItems() const
QString pathOrUrl() const
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
void setDefaults()
Clears all items and inserts the default urls into the combo.
Definition: kurlcombobox.cpp:157
Definition: kurlcombobox.h:57
Mode
This enum describes which kind of items is shown in the combo box.
Definition: kurlcombobox.h:57
virtual void setCompletionObject(KCompletion *compObj, bool hsig=true)
virtual void mouseMoveEvent(QMouseEvent *event)
Definition: kurlcombobox.cpp:403
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
bool isLocalFile() const
static int dndEventDelay()
virtual void setOrder(CompOrder order)
QStringList list(const QString &fileClass)
Returns a list of directories associated with this file-class.
Definition: krecentdirs.cpp:60
OverLoadResolving
This Enumeration is used in setUrl() to determine which items will be removed when the given list is ...
Definition: kurlcombobox.h:65
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:03 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:50:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.