Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1980

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QDirModel" doc="/**
&lt;p&gt;The &lt;a href=&quot;QDirModel.html#QDirModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt; class provides a data model for the local filesystem.&lt;/p&gt;
&lt;p&gt;This class provides access to the local filesystem, providing functions for renaming and removing files and directories, and for creating new directories. In the simplest case, it can be used with a suitable display widget as part of a browser or filer.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QDirModel.html#QDirModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt; keeps a cache with file information. The cache needs to be updated with &lt;a href=&quot;QDirModel.html#refresh(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;refresh&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A directory model that displays the contents of a default directory is usually constructed with a parent object:&lt;/p&gt;
&lt;pre&gt;        QDirModel *model = new QDirModel;&lt;/pre&gt;
&lt;p&gt;A tree view can be used to display the contents of the model&lt;/p&gt;
&lt;pre&gt;        QTreeView *tree = new QTreeView(splitter);
        tree-&amp;gt;setModel(model);&lt;/pre&gt;
&lt;p&gt;and the contents of a particular directory can be displayed by setting the tree view's root index:&lt;/p&gt;
&lt;pre&gt;        tree-&amp;gt;setRootIndex(model-&amp;gt;index(QDir::currentPath()));&lt;/pre&gt;
&lt;p&gt;The view's root index can be used to control how much of a hierarchical model is displayed. &lt;a href=&quot;QDirModel.html#QDirModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt; provides a convenience function that returns a suitable model index for a path to a directory within the model.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QDirModel.html#QDirModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt; can be accessed using the standard interface provided by &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#QAbstractItemModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAbstractItemModel&lt;/tt&gt;&lt;/a&gt;, but it also provides some convenience functions that are specific to a directory model. The &lt;a href=&quot;QDirModel.html#fileInfo(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;fileInfo&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDirModel.html#isDir(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;isDir&lt;/tt&gt;&lt;/a&gt;, name(), and path() functions provide information about the underlying files and directories related to items in the model. Directories can be created and removed using &lt;a href=&quot;QDirModel.html#mkdir(com.trolltech.qt.core.QModelIndex, java.lang.String)&quot;&gt;&lt;tt&gt;mkdir&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDirModel.html#rmdir(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;rmdir&lt;/tt&gt;&lt;/a&gt;, and the model will be automatically updated to take the changes into account.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#nameFilters()&quot;&gt;&lt;tt&gt;nameFilters&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDirModel.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDirModel.html#filter()&quot;&gt;&lt;tt&gt;filter&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QListView.html&quot;&gt;&lt;tt&gt;QListView&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeView.html&quot;&gt;&lt;tt&gt;QTreeView&lt;/tt&gt;&lt;/a&gt;
@see Dir View Example&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/model-view-model.html&quot;&gt;Model Classes&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void dataChanged(com.trolltech.qt.core.QModelIndex topLeft, com.trolltech.qt.core.QModelIndex bottomRight)" doc="/**
&lt;p&gt;This signal is emitted whenever the data in an existing item changes. The affected items are those between &lt;tt&gt;topLeft&lt;/tt&gt; and &lt;tt&gt;bottomRight&lt;/tt&gt; inclusive (of the same parent).&lt;/p&gt;
&lt;p&gt;Note that this signal must be emitted explicitly when reimplementing the &lt;a href=&quot;QDirModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QModelIndex topLeft, com.trolltech.qt.core.QModelIndex bottomRight)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QModelIndex topLeft)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QDirModel.html#headerDataChanged(com.trolltech.qt.core.Qt.Orientation, int, int)&quot;&gt;&lt;tt&gt;headerDataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDirModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDirModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void headerDataChanged(com.trolltech.qt.core.Qt.Orientation orientation, int first, int last)" doc="/**
&lt;p&gt;This signal is emitted whenever a header is changed. The &lt;tt&gt;orientation&lt;/tt&gt; indicates whether the horizontal or vertical header has changed. The sections in the header from the &lt;tt&gt;first&lt;/tt&gt; to the &lt;tt&gt;last&lt;/tt&gt; need to be updated.&lt;/p&gt;
&lt;p&gt;Note that this signal must be emitted explicitly when reimplementing the &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setHeaderData&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;If you are changing the number of columns or rows you don't need to emit this signal, but use the begin/end functions.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.Qt.Orientation orientation, int first, int last)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.Qt.Orientation orientation, int first)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.Qt.Orientation orientation)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QDirModel.html#headerData(int, com.trolltech.qt.core.Qt.Orientation, int)&quot;&gt;&lt;tt&gt;headerData&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setHeaderData&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDirModel.html#dataChanged(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;dataChanged&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void layoutAboutToBeChanged()" doc="/**
&lt;p&gt;This signal is emitted just before the layout of a model is changed. Components connected to this signal use it to adapt to changes in the model's layout.&lt;/p&gt;
&lt;p&gt;Subclasses should update any persistent model indexes after emitting &lt;a href=&quot;QDirModel.html#layoutAboutToBeChanged()&quot;&gt;&lt;tt&gt;layoutAboutToBeChanged&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QDirModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#changePersistentIndex(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;changePersistentIndex&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void layoutChanged()" doc="/**
&lt;p&gt;This signal is emitted whenever the layout of items exposed by the model has changed; for example, when the model has been sorted. When this signal is received by a view, it should update the layout of items to reflect this change.&lt;/p&gt;
&lt;p&gt;When subclassing &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#QAbstractItemModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAbstractItemModel&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QAbstractProxyModel.html&quot;&gt;&lt;tt&gt;QAbstractProxyModel&lt;/tt&gt;&lt;/a&gt;, ensure that you emit &lt;a href=&quot;QDirModel.html#layoutAboutToBeChanged()&quot;&gt;&lt;tt&gt;layoutAboutToBeChanged&lt;/tt&gt;&lt;/a&gt; before changing the order of items or altering the structure of the data you expose to views, and emit &lt;a href=&quot;QDirModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt; after changing the layout.&lt;/p&gt;
&lt;p&gt;Subclasses should update any persistent model indexes before emitting &lt;a href=&quot;QDirModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QDirModel.html#layoutAboutToBeChanged()&quot;&gt;&lt;tt&gt;layoutAboutToBeChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDirModel.html#dataChanged(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;dataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDirModel.html#headerDataChanged(com.trolltech.qt.core.Qt.Orientation, int, int)&quot;&gt;&lt;tt&gt;headerDataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#changePersistentIndex(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;changePersistentIndex&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QDirModel(java.util.List&lt;java.lang.String&gt; nameFilters, com.trolltech.qt.core.QDir.Filters filters, com.trolltech.qt.core.QDir.SortFlags sort, com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a new directory model with the given &lt;tt&gt;parent&lt;/tt&gt;. Only those files matching the &lt;tt&gt;nameFilters&lt;/tt&gt; and the &lt;tt&gt;filters&lt;/tt&gt; are included in the model. The sort order is given by the &lt;tt&gt;sort&lt;/tt&gt; flags.&lt;/p&gt;
 */"/>
    <method name="public QDirModel(java.util.List&lt;java.lang.String&gt; nameFilters, com.trolltech.qt.core.QDir.Filters filters, com.trolltech.qt.core.QDir.SortFlags sort)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#QDirModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;nameFilters&lt;/tt&gt;, &lt;tt&gt;filters&lt;/tt&gt;, &lt;tt&gt;sort&lt;/tt&gt;, 0). */"/>
    <method name="public QDirModel(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a directory model with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QDirModel()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#QDirModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final com.trolltech.qt.gui.QIcon fileIcon(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Returns the icons for the item stored in the model under the given &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QFileInfo fileInfo(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Returns the file information for the specified model &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; If the model index represents a symbolic link in the underlying filing system, the file information returned will contain information about the symbolic link itself, regardless of whether &lt;a href=&quot;QDirModel.html#resolveSymlinks()&quot;&gt;&lt;tt&gt;resolveSymlinks&lt;/tt&gt;&lt;/a&gt; is enabled or not.&lt;/p&gt;

@see &lt;tt&gt;QFileInfo::symLinkTarget&lt;/tt&gt; */"/>
    <method name="public final java.lang.String fileName(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Returns the name of the item stored in the model under the &lt;tt&gt;index&lt;/tt&gt; given.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String filePath(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Returns the path of the item stored in the model under the &lt;tt&gt;index&lt;/tt&gt; given.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QDir.Filters filter()" doc="/**
&lt;p&gt;Returns the filter specification for the directory model.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QDir::Filters&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFileIconProvider iconProvider()" doc="/**
&lt;p&gt;Returns the file icon provider for this directory model.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#setIconProvider(com.trolltech.qt.gui.QFileIconProvider)&quot;&gt;&lt;tt&gt;setIconProvider&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QModelIndex index(java.lang.String path, int column)" doc="/**
&lt;p&gt;Returns the model item index for the given &lt;tt&gt;path&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QModelIndex index(java.lang.String path)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#index(int, int, com.trolltech.qt.core.QModelIndex)&quot;&gt;index&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;path&lt;/tt&gt;, 0). */"/>
    <method name="public final boolean isDir(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Returns true if the model item &lt;tt&gt;index&lt;/tt&gt; represents a directory; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isReadOnly()" doc="/**
&lt;p&gt;Returns Whether the directory model allows writing to the file system.&lt;/p&gt;
&lt;p&gt;If this property is set to false, the directory model will allow renaming, copying and deleting of files and directories.&lt;/p&gt;
&lt;p&gt;This property is true by default&lt;/p&gt;
 */"/>
    <method name="public final boolean lazyChildCount()" doc="/**
&lt;p&gt;Returns Whether the directory model optimizes the &lt;a href=&quot;QDirModel.html#hasChildren(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;hasChildren&lt;/tt&gt;&lt;/a&gt; function to only check if the item is a directory..&lt;/p&gt;
&lt;p&gt;If this property is set to false, the directory model will make sure that a directory actually containes any files before reporting that it has children. Otherwise the directory model will report that an item has children if the item is a directory.&lt;/p&gt;
&lt;p&gt;This property is false by default&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#setLazyChildCount(boolean)&quot;&gt;&lt;tt&gt;setLazyChildCount&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QModelIndex mkdir(com.trolltech.qt.core.QModelIndex parent, java.lang.String name)" doc="/**
&lt;p&gt;Create a directory with the &lt;tt&gt;name&lt;/tt&gt; in the &lt;tt&gt;parent&lt;/tt&gt; model item.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; nameFilters()" doc="/**
&lt;p&gt;Returns a list of filters applied to the names in the model.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void refresh(com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;&lt;a href=&quot;QDirModel.html#QDirModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt; caches file information. This function updates the cache. The &lt;tt&gt;parent&lt;/tt&gt; parameter is the directory from which the model is updated; the default value will update the model from root directory of the file system (the entire model).&lt;/p&gt;
 */"/>
    <method name="public final void refresh()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#refresh(com.trolltech.qt.core.QModelIndex)&quot;&gt;refresh&lt;/tt&gt;&lt;/a&gt;(QModelIndex()). */"/>
    <method name="public final boolean remove(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Removes the model item &lt;tt&gt;index&lt;/tt&gt; from the directory model, returning true if successful. If the item cannot be removed, false is returned.&lt;/p&gt;
 */"/>
    <method name="public final boolean resolveSymlinks()" doc="/**
&lt;p&gt;Returns Whether the directory model should resolve symbolic links.&lt;/p&gt;
&lt;p&gt;This is only relevant on operating systems that support symbolic links.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#setResolveSymlinks(boolean)&quot;&gt;&lt;tt&gt;setResolveSymlinks&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean rmdir(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Removes the directory corresponding to the model item &lt;tt&gt;index&lt;/tt&gt; in the directory model, returning true if successful. If the directory cannot be removed, false is returned.&lt;/p&gt;
 */"/>
    <method name="public final void setFilter(com.trolltech.qt.core.QDir.Filters filters)" doc="/**
&lt;p&gt;Sets the directory model's filter to that specified by &lt;tt&gt;filters&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that the filter you set should always include the QDir::AllDirs enum value, otherwise &lt;a href=&quot;QDirModel.html#QDirModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt; won't be able to read the directory structure.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#filter()&quot;&gt;&lt;tt&gt;filter&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QDir::Filters&lt;/tt&gt; */"/>
    <method name="public final void setIconProvider(com.trolltech.qt.gui.QFileIconProvider provider)" doc="/**
&lt;p&gt;Sets the &lt;tt&gt;provider&lt;/tt&gt; of file icons for the directory model.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#iconProvider()&quot;&gt;&lt;tt&gt;iconProvider&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setLazyChildCount(boolean enable)" doc="/**
&lt;p&gt;Sets Whether the directory model optimizes the &lt;a href=&quot;QDirModel.html#hasChildren(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;hasChildren&lt;/tt&gt;&lt;/a&gt; function to only check if the item is a directory. to &lt;tt&gt;enable&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this property is set to false, the directory model will make sure that a directory actually containes any files before reporting that it has children. Otherwise the directory model will report that an item has children if the item is a directory.&lt;/p&gt;
&lt;p&gt;This property is false by default&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#lazyChildCount()&quot;&gt;&lt;tt&gt;lazyChildCount&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setNameFilters(java.util.List&lt;java.lang.String&gt; filters)" doc="/**
&lt;p&gt;Sets the name &lt;tt&gt;filters&lt;/tt&gt; for the directory model.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#nameFilters()&quot;&gt;&lt;tt&gt;nameFilters&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setReadOnly(boolean enable)" doc="/**
&lt;p&gt;Sets Whether the directory model allows writing to the file system to &lt;tt&gt;enable&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this property is set to false, the directory model will allow renaming, copying and deleting of files and directories.&lt;/p&gt;
&lt;p&gt;This property is true by default&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#isReadOnly()&quot;&gt;&lt;tt&gt;isReadOnly&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setResolveSymlinks(boolean enable)" doc="/**
&lt;p&gt;Sets Whether the directory model should resolve symbolic links to &lt;tt&gt;enable&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This is only relevant on operating systems that support symbolic links.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#resolveSymlinks()&quot;&gt;&lt;tt&gt;resolveSymlinks&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSorting(com.trolltech.qt.core.QDir.SortFlags sort)" doc="/**
&lt;p&gt;Sets the directory model's sorting order to that specified by &lt;tt&gt;sort&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#sorting()&quot;&gt;&lt;tt&gt;sorting&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QDir::SortFlags&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QDir.SortFlags sorting()" doc="/**
&lt;p&gt;Returns the sorting method used for the directory model.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QDir::SortFlags&lt;/tt&gt; */"/>
    <method name="public int columnCount(com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;Returns the number of columns in the &lt;tt&gt;parent&lt;/tt&gt; model item.&lt;/p&gt;
 */"/>
    <method name="public final int columnCount()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#columnCount(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;columnCount&lt;/tt&gt;&lt;/a&gt;(QModelIndex()). */"/>
    <method name="public java.lang.Object data(com.trolltech.qt.core.QModelIndex index, int role)" doc="/**
&lt;p&gt;Returns the data for the model item &lt;tt&gt;index&lt;/tt&gt; with the given &lt;tt&gt;role&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.Object data(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#data(com.trolltech.qt.core.QModelIndex, int)&quot;&gt;data&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;index&lt;/tt&gt;, Qt::DisplayRole). */"/>
    <method name="public boolean dropMimeData(com.trolltech.qt.gui.QMimeData data, com.trolltech.qt.core.Qt.DropAction action, int row, int column, com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;Handles the &lt;tt&gt;data&lt;/tt&gt; supplied by a drag and drop operation that ended with the given &lt;tt&gt;action&lt;/tt&gt; over the row in the model specified by the &lt;tt&gt;row&lt;/tt&gt; and &lt;tt&gt;column&lt;/tt&gt; and by the &lt;tt&gt;parent&lt;/tt&gt; index.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#supportedDropActions()&quot;&gt;&lt;tt&gt;supportedDropActions&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.core.Qt.ItemFlags flags(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Returns the item flags for the given &lt;tt&gt;index&lt;/tt&gt; in the model.&lt;/p&gt;

@see &lt;tt&gt;Qt::ItemFlags&lt;/tt&gt; */"/>
    <method name="public boolean hasChildren(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Returns true if the &lt;tt&gt;index&lt;/tt&gt; model item has children; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean hasChildren()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#hasChildren(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;hasChildren&lt;/tt&gt;&lt;/a&gt;(QModelIndex()). */"/>
    <method name="public java.lang.Object headerData(int section, com.trolltech.qt.core.Qt.Orientation orientation, int role)" doc="/**
&lt;p&gt;Returns the data stored under the given &lt;tt&gt;role&lt;/tt&gt; for the specified &lt;tt&gt;section&lt;/tt&gt; of the header with the given &lt;tt&gt;orientation&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.Object headerData(int section, com.trolltech.qt.core.Qt.Orientation orientation)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#headerData(int, com.trolltech.qt.core.Qt.Orientation, int)&quot;&gt;&lt;tt&gt;headerData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;section&lt;/tt&gt;, &lt;tt&gt;orientation&lt;/tt&gt;, Qt::DisplayRole). */"/>
    <method name="public com.trolltech.qt.core.QModelIndex index(int row, int column, com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;Returns the model item index for the item in the &lt;tt&gt;parent&lt;/tt&gt; with the given &lt;tt&gt;row&lt;/tt&gt; and &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QModelIndex index(int row, int column)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#index(int, int, com.trolltech.qt.core.QModelIndex)&quot;&gt;index&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;row&lt;/tt&gt;, &lt;tt&gt;column&lt;/tt&gt;, QModelIndex()). */"/>
    <method name="public com.trolltech.qt.gui.QMimeData mimeData(java.util.List&lt;com.trolltech.qt.core.QModelIndex&gt; indexes)" doc="/**
&lt;p&gt;Returns an object that contains a serialized description of the specified &lt;tt&gt;indexes&lt;/tt&gt;. The format used to describe the items corresponding to the indexes is obtained from the &lt;a href=&quot;QDirModel.html#mimeTypes()&quot;&gt;&lt;tt&gt;mimeTypes&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;If the list of indexes is empty, 0 is returned rather than a serialized empty list.&lt;/p&gt;
 */"/>
    <method name="public java.util.List&lt;java.lang.String&gt; mimeTypes()" doc="/**
&lt;p&gt;Returns a list of MIME types that can be used to describe a list of items in the model.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QModelIndex parent(com.trolltech.qt.core.QModelIndex child)" doc="/**
&lt;p&gt;Return the parent of the given &lt;tt&gt;child&lt;/tt&gt; model item.&lt;/p&gt;
 */"/>
    <method name="public int rowCount(com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;Returns the number of rows in the &lt;tt&gt;parent&lt;/tt&gt; model item.&lt;/p&gt;
 */"/>
    <method name="public final int rowCount()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#rowCount(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;rowCount&lt;/tt&gt;&lt;/a&gt;(QModelIndex()). */"/>
    <method name="public boolean setData(com.trolltech.qt.core.QModelIndex index, java.lang.Object value, int role)" doc="/**
&lt;p&gt;Sets the data for the model item &lt;tt&gt;index&lt;/tt&gt; with the given &lt;tt&gt;role&lt;/tt&gt; to the data referenced by the &lt;tt&gt;value&lt;/tt&gt;. Returns true if successful; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QDirModel.html#data(com.trolltech.qt.core.QModelIndex, int)&quot;&gt;&lt;tt&gt;data&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::ItemDataRole&lt;/tt&gt; */"/>
    <method name="public final boolean setData(com.trolltech.qt.core.QModelIndex index, java.lang.Object value)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;index&lt;/tt&gt;, &lt;tt&gt;value&lt;/tt&gt;, Qt::EditRole). */"/>
    <method name="public void sort(int column, com.trolltech.qt.core.Qt.SortOrder order)" doc="/**
&lt;p&gt;Sort the model items in the &lt;tt&gt;column&lt;/tt&gt; using the &lt;tt&gt;order&lt;/tt&gt; given. The order is a value defined in &lt;tt&gt;Qt::SortOrder&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void sort(int column)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDirModel.html#sort(int, com.trolltech.qt.core.Qt.SortOrder)&quot;&gt;sort&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;column&lt;/tt&gt;, Qt::AscendingOrder). */"/>
    <method name="public com.trolltech.qt.core.Qt.DropActions supportedDropActions()" doc="/**
&lt;p&gt;Returns the drop actions supported by this model.&lt;/p&gt;

@see &lt;tt&gt;Qt::DropActions&lt;/tt&gt; */"/>
    <enum name="Roles">
        <enum-value name="FileIconRole" doc="/**
Internal. */"/>
        <enum-value name="FilePathRole" doc="/**
Internal. */"/>
        <enum-value name="FileNameRole" doc="/**
Internal. */"/>
</enum>
</class>