Ignore:
Timestamp:
01/22/10 09:30:11 (12 years ago)
Author:
korrco <korrco@…>
Branches:
master, qt5
Children:
8200b03
Parents:
ab6110b
Message:

caching removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/eventmodel.cpp

    rab6110b r005e2b7  
    5656    int trackId = mEvents.first().trackId();
    5757
    58     mGroups << EventModel::Group(Track::getTrackName(trackId), 0);
     58    mGroups << EventModel::Group(Track::retrieveTrackName(trackId), 0);
    5959    int nextTrackId = trackId;
    6060
     
    6565        {
    6666            mGroups.last().mChildCount = i - mGroups.last().mFirstEventIndex;
    67             mGroups << EventModel::Group(Track::getTrackName(trackId), i);
     67            mGroups << EventModel::Group(Track::retrieveTrackName(trackId), i);
    6868            nextTrackId = trackId;
    6969        }
     
    7272    }
    7373    mGroups.last().mChildCount = mEvents.count() - mGroups.last().mFirstEventIndex;
     74}
     75
     76void EventModel::createTrackGroupsNew() {
     77    mGroups.clear();
     78    mParents.clear();
     79    if (mEvents.empty())
     80    {
     81        return;
     82    }
     83    QList<Track> trackList = Track::getAll();
     84    QList<Track>::iterator track = trackList.begin();
     85    while (track != trackList.end())
     86    {
     87        QList<Event> eventList = Event::getByTrack(track->id());
     88        QList<Event>::iterator event = eventList.begin();
     89        while (event != eventList.end())
     90        {
     91            //TODO korinpa: pokracuj
     92            event++;
     93        }
     94        track++;
     95    }
    7496}
    7597
Note: See TracChangeset for help on using the changeset viewer.