KIO
Go to the documentation of this file.
19 #ifndef KURLCOMBOBOX_H
20 #define KURLCOMBOBOX_H
24 #include <QtCore/QList>
25 #include <QtCore/QMap>
26 #include <QtCore/QStringList>
27 #include <QtGui/QIcon>
50 Q_PROPERTY(QStringList urls READ urls WRITE setUrls DESIGNABLE
true)
51 Q_PROPERTY(
int maxItems READ maxItems WRITE setMaxItems DESIGNABLE true)
57 enum
Mode { Files = -1, Directories = 1, Both = 0 };
100 void setUrl(
const KUrl& url );
109 void setUrls(
const QStringList &urls );
118 void setUrls(
const QStringList &urls, OverLoadResolving remove );
130 QStringList urls()
const;
136 void setMaxItems(
int );
142 int maxItems()
const;
152 void addDefaultUrl(
const KUrl& url,
const QString& text = QString() );
162 void addDefaultUrl(
const KUrl& url,
const QIcon& icon,
163 const QString& text = QString() );
176 void removeUrl(
const KUrl& url,
bool checkDefaultURLs =
true );
190 void urlActivated(
const KUrl& url );
193 virtual void mousePressEvent(QMouseEvent *event);
194 virtual void mouseMoveEvent(QMouseEvent *event);
197 class KUrlComboBoxPrivate;
198 KUrlComboBoxPrivate*
const d;
202 Q_PRIVATE_SLOT( d,
void _k_slotActivated(
int ) )
206 #endif // KURLCOMBOBOX_H
Mode
Possible image file access modes.
This combobox shows a number of recent URLs/directories, as well as some default directories.
virtual void setCompletionObject(KCompletion *compObj, bool hsig=true)
OverLoadResolving
This Enumeration is used in setUrl() to determine which items will be removed when the given list is ...
Mode
This enum describes which kind of items is shown in the combo box.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.