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;
318void 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 &&
431void KUrlComboBox::KUrlComboBoxPrivate::updateItem( const KUrlComboBoxPrivate::KUrlComboItem *item,
virtual void setCompletionObject(KCompletion *compObj, bool hsig=true)
virtual void setOrder(CompOrder order)
Sorted
static int dndEventDelay()
SizeMedium
SizeSmall
static QString iconNameForUrl(const KUrl &url, mode_t mode=0)
This combobox shows a number of recent URLs/directories, as well as some default directories.
Definition: kurlcombobox.h:48
void setUrls(const QStringList &urls)
Inserts urls into the combobox below the "default urls" (see addDefaultUrl).
Definition: kurlcombobox.cpp:169
virtual void mousePressEvent(QMouseEvent *event)
Definition: kurlcombobox.cpp:386
OverLoadResolving
This Enumeration is used in setUrl() to determine which items will be removed when the given list is ...
Definition: kurlcombobox.h:65
virtual void setCompletionObject(KCompletion *compObj, bool hsig=true)
Reimplemented from KComboBox (from KCompletion)
Definition: kurlcombobox.cpp:375
void removeUrl(const KUrl &url, bool checkDefaultURLs=true)
Removes any occurrence of url.
Definition: kurlcombobox.cpp:355
virtual void mouseMoveEvent(QMouseEvent *event)
Definition: kurlcombobox.cpp:403
void setMaxItems(int)
Sets how many items should be handled and displayed by the combobox.
Definition: kurlcombobox.cpp:329
void setDefaults()
Clears all items and inserts the default urls into the combo.
Definition: kurlcombobox.cpp:157
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
QString pathOrUrl() const
RemoveTrailingSlash
AddTrailingSlash
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
bool isLocalFile() const
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
#define kDebug
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
KGuiItem remove()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.