KIO
kdirmodel.h
Go to the documentation of this file.
161 virtual bool dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent );
169 virtual QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
171 virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const;
Definition joburlcache_p.h:27
Helper class for the kiojob used to list and update a directory.
Definition kdirlister.h:58
void expand(const QModelIndex &index)
Emitted for each subdirectory that is a parent of a url passed to expandToUrl This allows to asynchro...
void itemChanged(const QModelIndex &index)
Notify the model that the item at this index has changed.
Definition kdirmodel.cpp:629
QModelIndex indexForUrl(const KUrl &url) const
Return the index for a given url.
Definition kdirmodel.cpp:969
@ DropOnLocalExecutable
allow drops on local executables, shell scripts and desktop files. Can be used with DropOnDirectory.
Definition kdirmodel.h:146
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Reimplemented from QAbstractItemModel. O(1)
Definition kdirmodel.cpp:979
@ ChildCountRole
returns the number of items in a directory, or ChildCountUnknown
Definition kdirmodel.h:138
@ HasJobRole
returns whether or not there is a job on an item (file/directory)
Definition kdirmodel.h:139
void expandToUrl(const KUrl &url)
Lists subdirectories using fetchMore() as needed until the given url exists in the model.
Definition kdirmodel.cpp:1120
void needSequenceIcon(const QModelIndex &index, int sequenceIndex)
Emitted when another icon sequence index is requested.
KDirLister * dirLister() const
Return the directory lister used by this model.
Definition kdirmodel.cpp:358
void setDirLister(KDirLister *dirLister)
Set the directory lister to use by this model, instead of the default KDirLister created internally.
Definition kdirmodel.cpp:338
KFileItem itemForIndex(const QModelIndex &index) const
Return the fileitem for a given index.
Definition kdirmodel.cpp:943
QModelIndex indexForItem(const KFileItem *) const
Return the index for a given kfileitem.
Definition kdirmodel.cpp:953
virtual QModelIndex parent(const QModelIndex &index) const
Reimplemented from QAbstractItemModel.
Definition kdirmodel.cpp:839
List of KFileItems, which adds a few helper methods to QList<KFileItem>.
Definition kfileitem.h:675
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.