Ignore:
Timestamp:
01/17/10 17:22:03 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
6f39595
Parents:
680a4da
Message:

implemented JOINing two tables

  • modified 'ormrecord' to support JOINing two tables
  • modified 'event' accordingly, since its items/columns are splitted into two separate tables
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/delegate.cpp

    r680a4da rc790268  
    137137
    138138    // 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());
    141145    painter->drawText(titlePointF,text);
    142146
Note: See TracChangeset for help on using the changeset viewer.