diff options
Diffstat (limited to 'doc/pluginhowto/examples/dirmodelplugin/filesystemmodel.h')
-rw-r--r-- | doc/pluginhowto/examples/dirmodelplugin/filesystemmodel.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/pluginhowto/examples/dirmodelplugin/filesystemmodel.h b/doc/pluginhowto/examples/dirmodelplugin/filesystemmodel.h new file mode 100644 index 0000000000..c1a0803440 --- /dev/null +++ b/doc/pluginhowto/examples/dirmodelplugin/filesystemmodel.h @@ -0,0 +1,17 @@ +#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 |