Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/abstractmodel.cpp
Show All 38 Lines | 34 | { | |||
---|---|---|---|---|---|
39 | roles.insert(Kicker::DescriptionRole, "description"); | 39 | roles.insert(Kicker::DescriptionRole, "description"); | ||
40 | roles.insert(Kicker::FavoriteIdRole, "favoriteId"); | 40 | roles.insert(Kicker::FavoriteIdRole, "favoriteId"); | ||
41 | roles.insert(Kicker::IsParentRole, "isParent"); | 41 | roles.insert(Kicker::IsParentRole, "isParent"); | ||
42 | roles.insert(Kicker::IsSeparatorRole, "isSeparator"); | 42 | roles.insert(Kicker::IsSeparatorRole, "isSeparator"); | ||
43 | roles.insert(Kicker::HasChildrenRole, "hasChildren"); | 43 | roles.insert(Kicker::HasChildrenRole, "hasChildren"); | ||
44 | roles.insert(Kicker::HasActionListRole, "hasActionList"); | 44 | roles.insert(Kicker::HasActionListRole, "hasActionList"); | ||
45 | roles.insert(Kicker::ActionListRole, "actionList"); | 45 | roles.insert(Kicker::ActionListRole, "actionList"); | ||
46 | roles.insert(Kicker::UrlRole, "url"); | 46 | roles.insert(Kicker::UrlRole, "url"); | ||
47 | roles.insert(Kicker::DisabledRole, "disabled"); | ||||
47 | 48 | | |||
48 | return roles; | 49 | return roles; | ||
49 | } | 50 | } | ||
50 | 51 | | |||
51 | int AbstractModel::count() const | 52 | int AbstractModel::count() const | ||
52 | { | 53 | { | ||
53 | return rowCount(); | 54 | return rowCount(); | ||
54 | } | 55 | } | ||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |