Differential D1047 Diff 2606 languages/plugins/custom-definesandincludes/kcm_widget/projectpathsmodel.h
Changeset View
Changeset View
Standalone View
Standalone View
languages/plugins/custom-definesandincludes/kcm_widget/projectpathsmodel.h
Show All 34 Lines | |||||
35 | { | 35 | { | ||
36 | Q_OBJECT | 36 | Q_OBJECT | ||
37 | public: | 37 | public: | ||
38 | enum SpecialRoles { | 38 | enum SpecialRoles { | ||
39 | IncludesDataRole = Qt::UserRole + 1, | 39 | IncludesDataRole = Qt::UserRole + 1, | ||
40 | DefinesDataRole = Qt::UserRole + 2, | 40 | DefinesDataRole = Qt::UserRole + 2, | ||
41 | FullUrlDataRole = Qt::UserRole + 3, | 41 | FullUrlDataRole = Qt::UserRole + 3, | ||
42 | CompilerDataRole = Qt::UserRole + 4, | 42 | CompilerDataRole = Qt::UserRole + 4, | ||
43 | ParserArgumentsRole = CompilerDataRole + 1 | 43 | ParserArgumentsRole = Qt::UserRole + 5 | ||
44 | }; | 44 | }; | ||
45 | ProjectPathsModel( QObject* parent = 0 ); | 45 | ProjectPathsModel( QObject* parent = 0 ); | ||
46 | void setProject( KDevelop::IProject* w_project ); | 46 | void setProject( KDevelop::IProject* w_project ); | ||
47 | void setPaths( const QList< ConfigEntry >& paths ); | 47 | void setPaths( const QList< ConfigEntry >& paths ); | ||
48 | void addPath( const QUrl &url ); | 48 | void addPath( const QUrl &url ); | ||
49 | QList<ConfigEntry> paths() const; | 49 | QList<ConfigEntry> paths() const; | ||
50 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | 50 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | ||
51 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | 51 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | ||
Show All 13 Lines |