equal
deleted
inserted
replaced
51 return QVariant(); |
51 return QVariant(); |
52 |
52 |
53 if (aRole == Qt::DisplayRole) |
53 if (aRole == Qt::DisplayRole) |
54 { |
54 { |
55 int row = aIndex.row(); |
55 int row = aIndex.row(); |
|
56 QVariantList list; |
56 |
57 |
57 QString catNum; |
58 QString category = iItems->at(row)->catName; |
58 catNum.sprintf(" (%d)", iItems->at(row)->size); |
59 if (category.contains('(') && category.contains('-') && category.contains(')')) |
59 QString category = iItems->at(row)->catName + catNum; |
60 { |
|
61 list.append(category); |
|
62 } |
|
63 else |
|
64 { |
|
65 QString catNum; |
|
66 catNum.sprintf(" (%d)", iItems->at(row)->size); |
|
67 list.append(category + catNum); |
|
68 } |
60 |
69 |
61 QVariantList list; |
|
62 list.append(category); |
|
63 return list; |
70 return list; |
64 } |
71 } |
65 |
72 |
66 return QVariant(); |
73 return QVariant(); |
67 } |
74 } |