QSS Solver GUI  4.5.3
treemodel.hpp
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  This file is part of QSS Solver.
4 
5  QSS Solver is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  QSS Solver is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QSS Solver. If not, see <http://www.gnu.org/licenses/>.
17 
18  ******************************************************************************/
19 
20 #ifndef TREEMODEL_H_
21 #define TREEMODEL_H_
22 
23 #include <QStandardItemModel>
24 #include <QModelIndex>
25 #include <QVariant>
26 
27 class TreeItem;
28 class FileItem;
29 
33 class TreeModel : public QStandardItemModel {
34  Q_OBJECT
35  public:
41  TreeModel(const QStringList &headers, QObject *parent = 0);
45  ~TreeModel();
51  Qt::ItemFlags flags(const QModelIndex &index) const;
56  void addFiles(QString dir);
57 };
58 
59 #endif /* TREEMODEL_H_ */
TreeModel::TreeModel
TreeModel(const QStringList &headers, QObject *parent=0)
Definition: treemodel.cpp:26
TreeItem
Definition: treeitem.hpp:30
TreeModel::flags
Qt::ItemFlags flags(const QModelIndex &index) const
Definition: treemodel.cpp:30
TreeModel
Definition: treemodel.hpp:33
TreeModel::~TreeModel
~TreeModel()
Definition: treemodel.cpp:28
FileItem
Definition: treeitem.hpp:120
TreeModel::addFiles
void addFiles(QString dir)
Definition: treemodel.cpp:40