on xenial help sign in
Rename overrideCategory to overrideResults
4a3183dMichal Hruby
Dash/DashApps.qml+3−3
@@ -41,8 +41,8 @@ GenericScopeView {
41 }
41 }
42
42
43 onScopeChanged: {
43 onScopeChanged: {
44− scopeView.scope.categories.overrideCategory("recently-used", frequentlyUsedAppsModel.model);
44+ scopeView.scope.categories.overrideResults("recently-used", frequentlyUsedAppsModel.model);
45− scopeView.scope.categories.overrideCategory("recent", runningApplicationsModel);
45+ scopeView.scope.categories.overrideResults("recent", runningApplicationsModel);
46− scopeView.scope.categories.overrideCategory("more", appsAvailableForDownloadModel.model);
46+ scopeView.scope.categories.overrideResults("more", appsAvailableForDownloadModel.model);
47 }
47 }
48}
48}
Dash/DashHome.qml+1−1
@@ -28,6 +28,6 @@ GenericScopeView {
28 FrequentlyUsedAppsModel { id: appsModel }
28 FrequentlyUsedAppsModel { id: appsModel }
29
29
30 onScopeChanged: {
30 onScopeChanged: {
31− root.scope.categories.overrideCategory("applications.scope", appsModel.model);
31+ root.scope.categories.overrideResults("applications.scope", appsModel.model);
32 }
32 }
33}
33}
plugins/Unity/categories.cpp+1−1
@@ -123,7 +123,7 @@ Categories::roleNames() const
123 return m_roles;
123 return m_roles;
124}
124}
125
125
126−void Categories::overrideCategory(const QString& categoryId, QAbstractItemModel* model)
126+void Categories::overrideResults(const QString& categoryId, QAbstractItemModel* model)
127{
127{
128 m_overriddenCategories[categoryId] = model;
128 m_overriddenCategories[categoryId] = model;
129 // TODO: change the parent of the model?
129 // TODO: change the parent of the model?
plugins/Unity/categories.h+1−1
@@ -53,7 +53,7 @@ public:
53 RoleCategoryIndex
53 RoleCategoryIndex
54 };
54 };
55
55
56− Q_INVOKABLE void overrideCategory(const QString& categoryId, QAbstractItemModel* model);
56+ Q_INVOKABLE void overrideResults(const QString& categoryId, QAbstractItemModel* model);
57
57
58 QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
58 QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
59
59