Changeset View
Changeset View
Standalone View
Standalone View
project/projectmodel.cpp
Show First 20 Lines • Show All 1058 Lines • ▼ Show 20 Line(s) | 1058 | { | |||
---|---|---|---|---|---|
1059 | return d->rootItem->children(); | 1059 | return d->rootItem->children(); | ||
1060 | } | 1060 | } | ||
1061 | 1061 | | |||
1062 | Qt::ItemFlags ProjectModel::flags(const QModelIndex& index) const | 1062 | Qt::ItemFlags ProjectModel::flags(const QModelIndex& index) const | ||
1063 | { | 1063 | { | ||
1064 | ProjectBaseItem* item = itemFromIndex( index ); | 1064 | ProjectBaseItem* item = itemFromIndex( index ); | ||
1065 | if(item) | 1065 | if(item) | ||
1066 | return item->flags(); | 1066 | return item->flags(); | ||
1067 | else | 1067 | | ||
1068 | return nullptr; | 1068 | return Qt::NoItemFlags; | ||
1069 | } | 1069 | } | ||
1070 | 1070 | | |||
1071 | bool ProjectModel::insertColumns(int, int, const QModelIndex&) | 1071 | bool ProjectModel::insertColumns(int, int, const QModelIndex&) | ||
1072 | { | 1072 | { | ||
1073 | // Not supported | 1073 | // Not supported | ||
1074 | return false; | 1074 | return false; | ||
1075 | } | 1075 | } | ||
1076 | 1076 | | |||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |