Changeset 005e2b7 for src/mvc/event.cpp


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/event.cpp

    rab6110b r005e2b7  
    6161    query.bindValue(":start", convertToDb(date, QVariant::DateTime));
    6262    query.bindValue(":end", convertToDb(date.addDays(1), QVariant::DateTime));
     63
     64    return load(query);
     65}
     66
     67QList<Event> Event::getByTrack(int trackId)
     68{
     69    QSqlQuery query;
     70    query.prepare(selectQuery() + QString("WHERE xid_track = :trackId ORDER BY start"));
     71    query.bindValue(":trackId", trackId);
    6372
    6473    return load(query);
Note: See TracChangeset for help on using the changeset viewer.