on xenial help sign in
Fixed whitespace.
commitd4c8a11d7350b0c3ba568ddad84c821e9fd68ee3 authorPawel Stolowski <pawel.stolowski@canonical.com> dateFri 4 Oct 2013, 12:25 (13 years ago) parent332ca77
1 file changed+5−5
plugins/Unity/categories.cpp+5−5
plugins/Unity/categories.cpp+5−5
@@ -93,7 +93,7 @@ void Categories::onCategoriesModelChanged(unity::glib::Object<DeeModel> model)
9393 delete model;
9494 }
9595 m_results.clear();
96−
96+
9797 setModel(model);
9898}
9999
@@ -108,14 +108,14 @@ void Categories::onCategoryOrderChanged(std::vector<unsigned int> cat_order)
108108 qWarning() << "No such category index:" << cat;
109109 continue;
110110 }
111−
111+
112112 if (static_cast<int>(pos) != old_pos) {
113113 int target_pos = pos;
114114 const bool status = beginMoveRows(QModelIndex(), old_pos, old_pos, QModelIndex(), target_pos);
115115 if (status)
116116 m_categoryOrder.move(old_pos, pos);
117117 else
118− qWarning("beginMoveRows failed");
118+ qWarning("beginMoveRows failed");
119119 endMoveRows();
120120 }
121121 }
@@ -245,7 +245,7 @@ Categories::data(const QModelIndex& index, int role) const
245245 qWarning() << "Invalid index" << index.row();
246246 return QVariant();
247247 }
248−
248+
249249 const QModelIndex realIndex = createIndex(realRow, index.column());
250250
251251 switch (role) {
@@ -282,7 +282,7 @@ Categories::data(const QModelIndex& index, int role) const
282282 return QVariant::fromValue(m_overriddenCategories[id]);
283283 }
284284 return QVariant::fromValue(getResults(realRow));
285− case RoleCount:
285+ case RoleCount:
286286 if (m_overriddenCategories.size() > 0)
287287 {
288288 auto id = DeeListModel::data(realIndex, CategoryColumn::ID).toString();