Files
qt-creator/doc/examples/dirmodelplugin/filesystemmodel.h
Abhishek Patil abcb9358c2 Qt Creator Plugin HOWTO documentation first and second cut
Signed-off-by: Abhishek Patil <abhishek.patil@vcreatelogic.com>

Merge-request: 145
Reviewed-by: con <qtc-committer@nokia.com>
2010-06-21 17:32:15 +02:00

18 lines
402 B
C++

#ifndef FILESYSTEMMODEL_H
#define FILESYSTEMMODEL_H
#include <QFileSystemModel>
/**
This FileSystemModel is subcalss of QFileSystemModel which just returns only 1 column.
*/
class FileSystemModel : public QFileSystemModel
{
public:
FileSystemModel(QObject* parent=0);
~FileSystemModel();
int columnCount(const QModelIndex &parent = QModelIndex()) const;
};
#endif // FILESYSTEMMODEL_H