forked from qt-creator/qt-creator
Move the plugin examples to subdir of pluginhowto.
This commit is contained in:
17
doc/pluginhowto/examples/dirmodelplugin/filesystemmodel.h
Normal file
17
doc/pluginhowto/examples/dirmodelplugin/filesystemmodel.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user