KFile
kurlnavigatorplacesselector.cpp
Go to the documentation of this file.
40 KUrlNavigatorPlacesSelector::KUrlNavigatorPlacesSelector(QWidget* parent, KFilePlacesModel* placesModel) :
void setMenu(QMenu *menu)
int width() const
const QMimeData * mimeData() const
void requestSetup(const QModelIndex &index)
Definition: kfileplacesmodel.cpp:817
virtual QSize sizeHint() const
void setFocusPolicy(Qt::FocusPolicy policy)
QVariant data() const
MimetypeJob * mimetype(const KUrl &url, JobFlags flags=DefaultFlags)
virtual void dragLeaveEvent(QDragLeaveEvent *event)
const T & at(int i) const
int y() const
void requestTeardown(const QModelIndex &index)
Definition: kfileplacesmodel.cpp:786
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Get the children model index for the given row and column.
Definition: kfileplacesmodel.cpp:249
QString text(const QModelIndex &index) const
Definition: kfileplacesmodel.cpp:192
void addPlace(const QString &text, const KUrl &url, const QString &iconName=QString(), const QString &appName=QString())
Definition: kfileplacesmodel.cpp:634
QAction * teardownActionForIndex(const QModelIndex &index) const
Definition: kfileplacesmodel.cpp:727
bool setupNeeded(const QModelIndex &index) const
Definition: kfileplacesmodel.cpp:182
void setIcon(const QIcon &icon)
void update()
int rowCount(const QModelIndex &parent=QModelIndex()) const
Get the number of rows for a model index.
Definition: kfileplacesmodel.cpp:266
QPixmap pixmap(const QSize &size, Mode mode, State state) const
int size() const
int width() const
bool isValid() const
KIcon icon(const QModelIndex &index) const
Definition: kfileplacesmodel.cpp:187
int toInt(bool *ok) const
int x() const
static KUrl::List fromMimeData(const QMimeData *mimeData, KUrl::MetaDataMap *metaData=0)
QModelIndex closestItem(const KUrl &url) const
Returns the closest item for the URL url.
Definition: kfileplacesmodel.cpp:281
QSize iconSize() const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
bool isEmpty() const
int row() const
const QPixmap * pixmap() const
void setAcceptDrops(bool on)
void setData(const QVariant &userData)
void setParent(QObject *parent)
int height() const
bool hasUrls() const
QString fileName(const DirectoryOptions &options=IgnoreTrailingSlash) const
void removeAction(QAction *action)
int height() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QList< QAction * > actions() const
QString toString() const
int height() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:27 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:27:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.