42 #ifndef QDECLARATIVEFOLDERLISTMODEL_H 43 #define QDECLARATIVEFOLDERLISTMODEL_H 46 #include <QStringList> 48 #include <QAbstractListModel> 50 #ifndef QT_NO_DIRMODEL 157 #endif // QT_NO_DIRMODEL 159 #endif // QDECLARATIVEFOLDERLISTMODEL_H The QVariant class acts like a union for the most common Qt data types.
QDeclarativeFolderListModelPrivate * d
void handleDataChanged(const QModelIndex &start, const QModelIndex &end)
#define QT_END_NAMESPACE
This macro expands to.
void inserted(const QModelIndex &index, int start, int end)
#define QML_DECLARE_TYPE(TYPE)
void setFolder(const QUrl &folder)
void setNameFilters(const QStringList &filters)
Q_INVOKABLE bool isFolder(int index) const
[prop funcs]
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QAbstractListModel class provides an abstract model that can be subclassed to create one-dimensio...
int rowCount(const QModelIndex &parent) const
Returns the number of rows under the given parent.
The QUrl class provides a convenient interface for working with URLs.
void setShowDotAndDotDot(bool)
The QObject class is the base class of all Qt objects.
QModelIndex index(int row, int column=0, const QModelIndex &parent=QModelIndex()) const
Returns the index of the data in row and column with parent.
void setSortField(SortField field)
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool showOnlyReadable() const
void setSortReversed(bool rev)
The QDeclarativeParserStatus class provides updates on the QML parser state.
int count() const
[abslistmodel]
The QStringList class provides a list of strings.
virtual void classBegin()
[isfolder]
bool sortReversed() const
bool showDotAndDotDot() const
QUrl parentFolder() const
static const char *const filters[3]
QVariant data(const QModelIndex &index, int role) const
Returns the data stored under the given role for the item referred to by the index.
#define Q_INTERFACES(x)
This macro tells Qt which interfaces the class implements.
QObject * parent() const
Returns a pointer to the parent object.
The QModelIndex class is used to locate data in a data model.
The QDeclarativeContext class defines a context within a QML engine.
SortField sortField() const
virtual void componentComplete()
Invoked after the root component that caused this instantiation has completed construction.
void setShowOnlyReadable(bool)
static const KeyPair *const end
void folderChanged()
[parserstatus]
QUrl folder() const
[count]
void removed(const QModelIndex &index, int start, int end)
QStringList nameFilters() const