summaryrefslogtreecommitdiff
path: root/src/mobile/ui/treechoosermodel.h
blob: c1575aedce7bf080335634460d8f676661c44efc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef TREE_CHOOSER_MODEL_H
#define TREE_CHOOSER_MODEL_H

#include <QAbstractItemModel>

class TreeChooserModel : public QAbstractListModel
{
    Q_OBJECT
public:
    enum TreeEntryRoles {
        NameRole = Qt::UserRole + 1,
        ChildCountRole
    };

    TreeChooserModel(QObject *parent = 0);
    QHash<int, QByteArray>    TreeChooserModel::roleNames() const;

};

#endif