summaryrefslogtreecommitdiff
path: root/doc/pluginhowto/examples/dirmodelplugin/filesystemmodel.h
blob: c1a080344095b917d95113ddc765741e88e5f43b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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