Changeset c790268 for src/mvc/delegate.cpp
- Timestamp:
- 01/17/10 17:22:03 (13 years ago)
- Branches:
- master, qt5
- Children:
- 6f39595
- Parents:
- 680a4da
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/delegate.cpp
r680a4da rc790268 137 137 138 138 // draw title 139 QPointF titlePointF(option.rect.x(),option.rect.y()+option.rect.height()-10); 140 QString text = qVariantValue<QString>(index.data()); 139 QPointF titlePointF(option.rect.x()+SPACER,option.rect.y()+option.rect.height()-10); 140 QString text; 141 if(index.parent().isValid()) // event 142 text = qVariantValue<QString>(index.data()) + ": " + static_cast<Event*>(index.internalPointer())->title(); 143 else // group 144 text = qVariantValue<QString>(index.data()); 141 145 painter->drawText(titlePointF,text); 142 146
Note: See TracChangeset
for help on using the changeset viewer.