on xenial help sign in
See if this fixes the qml test failures
commit455858aa3281c552829ef83c4ee6246e3f68b5aa authorAndrea Cimitan <andrea.cimitan@gmail.com> dateWed 9 Sep 2015, 12:52 (11 years ago) parenteba5cf6
1 file changed+4−2
tests/mocks/Unity/fake_categories.cpp+4−2
tests/mocks/Unity/fake_categories.cpp+4−2
@@ -52,10 +52,12 @@ Categories::data(const QModelIndex& index, int role) const
5252 ResultsModel *resultsModel = resultModel(index.row());
5353 switch (role) {
5454 case RoleCategoryId:
55− if (index.row() == 0) {
55+ if (index.row() == 6) {
5656 return QString("predefined");
57− } else if (index.row() == 2) {
57+ } else if (index.row() == 8) {
5858 return QString("local");
59+ } else {
60+ return QString("%1").arg(index.row());
5961 }
6062 case RoleName:
6163 return QString("Category %1").arg(index.row());