NAME

Qt::Gui::QDirModel

PUBLIC METHODS

QDirModel(QObject * parent)
QDirModel(QObject * parent = 0)
QDirModel(const QStringList & nameFilters, QDir::Filters filters, QDir::SortFlags sort, QObject * parent)
QDirModel(const QStringList & nameFilters, QDir::Filters filters, QDir::SortFlags sort, QObject * parent = 0)
~QDirModel()
int columnCount(const QModelIndex & parent)
int columnCount(const QModelIndex & parent = QModelIndex())
QVariant data(const QModelIndex & index, int role)
QVariant data(const QModelIndex & index, int role = Qt::DisplayRole)
bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent)
QIcon fileIcon(const QModelIndex & index)
QFileInfo fileInfo(const QModelIndex & index)
QString fileName(const QModelIndex & index)
QString filePath(const QModelIndex & index)
QDir::Filters filter()
QFlags<Qt::ItemFlag> flags(const QModelIndex & index)
bool hasChildren(const QModelIndex & index)
bool hasChildren(const QModelIndex & index = QModelIndex())
QVariant headerData(int section, Qt::Orientation orientation, int role)
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole)
QFileIconProvider * iconProvider()
QModelIndex index(const QString & path, int column)
QModelIndex index(const QString & path, int column = 0)
QModelIndex index(int row, int column, const QModelIndex & parent)
QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex())
bool isDir(const QModelIndex & index)
bool isReadOnly()
bool lazyChildCount()
QStringList mimeTypes()
QModelIndex mkdir(const QModelIndex & parent, const QString & name)
QStringList nameFilters()
QModelIndex parent(const QModelIndex & child)
void refresh(const QModelIndex & parent)
void refresh(const QModelIndex & parent = QModelIndex())
bool remove(const QModelIndex & index)
bool resolveSymlinks()
bool rmdir(const QModelIndex & index)
int rowCount(const QModelIndex & parent)
int rowCount(const QModelIndex & parent = QModelIndex())
bool setData(const QModelIndex & index, const QVariant & value, int role)
bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole)
void setFilter(QDir::Filters filters)
void setIconProvider(QFileIconProvider * provider)
void setLazyChildCount(bool enable)
void setNameFilters(const QStringList & filters)
void setReadOnly(bool enable)
void setResolveSymlinks(bool enable)
void setSorting(QDir::SortFlags sort)
void sort(int column, Qt::SortOrder order)
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder)
QDir::SortFlags sorting()
QFlags<Qt::DropAction> supportedDropActions()

ENUM VALUES

FileIconRole
FilePathRole
FileNameRole

EXPORT

None by default.

AUTHOR

Dongxu Ma <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2011 - 2012 by Dongxu Ma

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/artistic.html