Ignore:
Timestamp:
01/19/10 21:58:29 (12 years ago)
Author:
korrco <korrco@…>
Branches:
master, qt5
Children:
1fe2f21
Parents:
395d6d3
Message:

support for view activities with their names added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/eventmodel.cpp

    r395d6d3 r9208bdb  
    11#include "eventmodel.h"
    22#include <conference.h>
     3#include <activity.h>
    34
    45EventModel::EventModel()
     
    5152    }
    5253    int activityId = mEvents.first().activityId();
    53     //TODO korinpa: get activity name
    54     mGroups << EventModel::Group(QString("activity %1").arg(activityId), 0);
     54
     55    mGroups << EventModel::Group(Activity::getActivityName(activityId), 0);
    5556    int nextActivityId = activityId;
    5657
     
    6162        {
    6263            mGroups.last().mChildCount = i - mGroups.last().mFirstEventIndex;
    63             mGroups << EventModel::Group(QString("activity %1").arg(activityId), 0);
    64             //int nextActivityId = activityId;
     64            mGroups << EventModel::Group(Activity::getActivityName(activityId), i);
     65            nextActivityId = activityId;
    6566        }
    6667        // add parent-child relation
Note: See TracChangeset for help on using the changeset viewer.