~ubuntu-branches/ubuntu/vivid/muon/vivid-proposed

« back to all changes in this revision

Viewing changes to installer/CategoryView/CategoryViewWidget.h

Tags: upstream-1.3.65
ImportĀ upstreamĀ versionĀ 1.3.65

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <QModelIndex>
27
27
#include <QtCore/QList>
28
28
 
 
29
class CategoryModel;
29
30
class QIcon;
30
31
class QStandardItemModel;
31
32
class QString;
39
40
    class Backend;
40
41
}
41
42
 
42
 
enum CatViewType {
43
 
    /// An invalid type
44
 
    InvalidType = 0,
45
 
    /// An AppView since there are no sub-cats
46
 
    CategoryType = 1,
47
 
    /// A SubCategoryView
48
 
    SubCatType = 2
49
 
};
50
 
 
51
 
enum CategoryModelRole {
52
 
    CategoryTypeRole = Qt::UserRole + 1,
53
 
    AndOrFilterRole = Qt::UserRole + 2,
54
 
    NotFilterRole = Qt::UserRole + 3
55
 
};
56
 
 
57
43
class CategoryViewWidget : public AbstractViewBase
58
44
{
59
45
    Q_OBJECT
69
55
private:
70
56
    QApt::Backend *m_backend;
71
57
    ApplicationBackend *m_appBackend;
72
 
    QStandardItemModel *m_categoryModel;
73
 
    QList<Category *> m_categoryList;
 
58
    CategoryModel *m_categoryModel;
74
59
    QHash<QModelIndex, AbstractViewBase *> m_subViewHash;
75
60
 
76
61
    CategoryView *m_categoryView;