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,
const T & next()
virtual void setCompletionObject(KCompletion *compObj, bool hsig=true)
Reimplemented from KComboBox (from KCompletion)
Definition: kurlcombobox.cpp:375
void setMimeData(QMimeData *data)
QStyle * style() const
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const =0
QString text(int index) const
void removeFirst()
void setPixmap(const QPixmap &pixmap)
int x() const
void clear()
bool contains(const QString &str, Qt::CaseSensitivity cs) const
int x() const
QString itemText(int index) const
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
const QPixmap * icon() const
bool exists() const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual void mousePressEvent(QMouseEvent *event)
Definition: kurlcombobox.cpp:386
bool isEmpty() const
void insertItem(int index, const QString &text, const QVariant &userData)
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
void initFrom(const QWidget *widget)
KUrlComboBox(Mode mode, QWidget *parent=0)
Constructs a KUrlComboBox.
Definition: kurlcombobox.cpp:75
Qt::DropAction exec(QFlags< Qt::DropAction > supportedActions)
QStringList urls() const
virtual void mousePressEvent(QMouseEvent *e)
void setMaxItems(int)
Sets how many items should be handled and displayed by the combobox.
Definition: kurlcombobox.cpp:329
int count(const T &value) const
int count() const
void append(const T &value)
QIcon itemIcon(int index) const
Qt::LayoutDirection layoutDirection() const
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
bool isEmpty() const
virtual void mouseMoveEvent(QMouseEvent *event)
bool isEmpty() const
QString pathOrUrl() const
void setText(const QString &text)
QPixmap pixmap(int index) const
void setDefaults()
Clears all items and inserts the default urls into the combo.
Definition: kurlcombobox.cpp:157
QRect rect() const
Definition: kurlcombobox.h:57
bool blockSignals(bool block)
const Key key(const T &value) const
Mode
This enum describes which kind of items is shown in the combo box.
Definition: kurlcombobox.h:57
QRect visualRect(Qt::LayoutDirection direction, const QRect &boundingRectangle, const QRect &logicalRectangle)
typedef ConstIterator
void setCurrentIndex(int index)
void removeLast()
virtual void setCompletionObject(KCompletion *compObj, bool hsig=true)
virtual void mouseMoveEvent(QMouseEvent *event)
Definition: kurlcombobox.cpp:403
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
const_iterator constEnd() const
const_iterator constBegin() const
bool isLocalFile() const
QObject * parent() const
static int dndEventDelay()
virtual void setOrder(CompOrder order)
void setUrls(const QList< QUrl > &urls)
QStringList list(const QString &fileClass)
Returns a list of directories associated with this file-class.
Definition: krecentdirs.cpp:60
const T value(const Key &key) const
OverLoadResolving
This Enumeration is used in setUrl() to determine which items will be removed when the given list is ...
Definition: kurlcombobox.h:65
bool hasNext() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.